Multiple requirements files
Python
base.txt: shared dependencies
Django
dev.txt: development only dependencies
-r base.txt
django-debug-toolbar
prod.txt: production only dependencies
-r base.txt
gunicorn
Then run pip install -r dev.txt
or pip install -r prod.txt
. based on the environment.