This way is more Django oriented, and closer to how most apps are developed.
- Make sure you've python 3.x installed on your machine (3.6 is preffered, but 3.4, 3.5 should do)
- Create virtualenv using python3.6 and activate it.
pip install -r requirements.txt
python pylight/manage.py migrate
SECRET_KEY=secret python pylight/manage.py runserver
- Visit
http://localhost:8000
This way is closer to how our website is deployed and can catch more errors.
- Make sure you've python 3.x installed on your machine (3.6 is preffered, but 3.4, 3.5 should do)
- Create virtualenv using python3.6 and activate it.
pip install -r requirements.txt
- Install https://devcenter.heroku.com/articles/heroku-cli
heroku local:run python pylight/manage.py migrate
heroku local:run python pylight/manage.py collectstatic
(if you're not running in DEBUG mode)heroku local
(adjust DEBUG as required)- Visit
http://localhost:5000
Without additional config, application starts as close as possible to production environment (this means, no DEBUG, wsgi server, etc.) It makes development a bit more involved, but it's easier to produce app that will run on prod when deployed :)