项目作者: rishank-shah
项目描述 :
Ecommerce Website Using Django
高级语言: HTML
项目地址: git://github.com/rishank-shah/django-ecommerce.git
Django Ecommerce
Table of Contents
Requirements for running project
- Software Installation:
- Accounts Required:
Before running the project make sure that postgresql, elasticsearch and redis servers are running.
Steps for running project:
Clone Repository:
git clone https://github.com/rishank-shah/django-ecommerce.git
cd django-ecommerce
cp .env.example .env
Environment Setup:
pip install virtualenv
virtualenv venv
Create DB
Create a DB in postgresql and enter the same DB name in the .env file
Fill .env file:
Fill the .env file with the correct database, cloudinary, email, sentry credentials, elasticsearch and redis url.
Installation of Dependencies:
source venv/bin/activate
pip install -r requirements.txt
Migrations and SuperUser
source venv/bin/activate
source .env
python manage.py migrate
python manage.py createsuperuser
Running Django Server:
source venv/bin/activate
source .env
python manage.py runserver
Running Celery:
For running celery open another terminal navigate to django-ecommerce
folder and execute the following commands
source venv/bin/activate
source .env
celery -A ecommerce_project worker -l info
ElasticSearch:
If you are facing an error while saving products in admin, navigate to django-ecommerce
folder and execute the following commands
source venv/bin/activate
source .env
python manage.py search_index --rebuild
Press y
and enter
Initial Data
You can load some initial data from fixture load_product_data.json
Please Note Images will not be displayed as your cloudinary account will be different
source venv/bin/activate
source .env
python manage.py loaddata load_product_data.json
If all commands run successfully website will be running on PORT 8000 on localhost http://localhost:8000