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
Release history Release notifications | RSS feed
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.3.tar.gz
(33.1 kB
view details)
Built Distribution
File details
Details for the file django-ecom-store-0.0.3.tar.gz
.
File metadata
- Download URL: django-ecom-store-0.0.3.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4b344a25a8c8c841d3b72aaa6112ab0113ee04abfc44a044ac6ca60fab7635 |
|
MD5 | 9e633de1a9b35c9aa6f3548b513aa312 |
|
BLAKE2b-256 | 56c6f5368cd7d7599f8f18c2f311d1884a5305ee1ed4187f14323d18bd603753 |
File details
Details for the file django_ecom_store-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_ecom_store-0.0.3-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ca687da5fae1b90f8dcf163da8984357f802235b971a367e13b0576d42e2d4 |
|
MD5 | 41e4c368198802f8591eb3b4e6569131 |
|
BLAKE2b-256 | 491e586acbf411ab1deb53f0ea4d3edcf61b3bc8423e2b5eb5e98d20d5e35ccb |