30👍
✅
Don’t add the env to the repo. Instead, before deploying, run command pip freeze
and save the output in a text file say requirements.txt. This file should be in the repo. To install dependencies in a fresh virtualenv when deploying:
pip install -r requirements.txt
👤jpic
0👍
Bad idea include .env on git, bcs not all apps installed in .env directory, part of this installed in your system directories
- How does one use Django custom management command option?
- Django-celery warnings about settings.DEBUG
Source:stackexchange.com