A django e-commerce application .
-
Create a virtual environment
virtualenv venv -
Start virtual environment
source venv/bin/activate -
Install requirements
pip install -r requirements/dev.txt -
Enable Debug for debugging
Go to the
settings.pyfile and set the variableDEBUGto True. -
Migrate DB
python manage.py makemigrationsandpython manage.py migrate -
Running test server, go to the folder with
manage.pyfile and run:python manage.py runserverThis will run the server at localhost.
-
Running tests
python manage.py test