Skip to main content

An E-Commerce store for Django Application

Project description

Store

An E-Commerce store for Django Application

01. To install and use the package, use:

    pip install django-user-login
    pip install django-ecom-store

Instructions

02. Add "authentication" and "store" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'authentication',
        'store',
    ]

03. Include the authentication and store URLconfs in your project urls.py like this:

    path('authentication/', include('authentication.urls')),
    path('store/', include('store.urls')),

04. Run python manage.py migrate (you'll need the Admin app enabled).

05. The App requires Django Sessions

06. In your settings.py file include the following:

    SITE_TITLE = 'your-site-title'
    LOGIN_URL = '/authentication/'
    EMAIL_HOST = 'email-host'
    EMAIL_PORT = email-port
    EMAIL_HOST_USER = 'emaill-address'
    EMAIL_HOST_PASSWORD = 'email-password
    EMAIL_USE_TLS = True
    AUTHENTICATION_DEBUG=False
    VERIFICATION_CODE_VALIDITY_IN_MINUTES = 10 # any integer value between [1 to 60]

    CURRENCY = '$' # your local currency
    CHECK_DELIVERABILITY = False
    # If set to `True`, upload all pincodes in the database where
    # you deliver your products.
    # optionally, you can also add products that are not deliverable at that location

    TIME_ZONE = 'UTC'
    USE_TZ = True

    'context_processors': [
            ...
            'store.context_processors.site_defaults',
    ],

07. To redirect users to "store" homepage use any of the following -

    - <a href="{% url 'store:homepage' %}">Store</a>
    - <a href='/store/'>Store</a>

08. When AUTHENTICATION_DEBUG = TRUE

    - Live EMAILS will not be sent and verification codes, if any, will be displayed in the console.

09. Product images are stored in BASE_DIR/images/product-images/ if not other location is specified.

    upload_to="images/product-images/"

10. Check Demo Website and associated Github code for more information.

11. Check information on authentication app here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ecom-store-0.0.4.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

django_ecom_store-0.0.4-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file django-ecom-store-0.0.4.tar.gz.

File metadata

  • Download URL: django-ecom-store-0.0.4.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for django-ecom-store-0.0.4.tar.gz
Algorithm Hash digest
SHA256 16de48bf8d765c78f681b64a11a2c4076790dd6159c2054d0101d4b31c859591
MD5 a959d74fc3abfa4da1e1064e011cdfc2
BLAKE2b-256 a611c95385a737eaab53f71c7793ad1de762c961663fcaee9747774411328ed0

See more details on using hashes here.

File details

Details for the file django_ecom_store-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ecom_store-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 12f5f8bec53fb53430ee6a084439b20b54fe9fc60c6c963b6d2f3536bf8bd1dc
MD5 e0967734470d85f6069847869d98c9eb
BLAKE2b-256 6933d4253eeea8a76fc6bee92e087c204b9c5fd317cf8cd5337c376680c0e4ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page