Multiple requirements files

Python

Use different requirements files for development and production environments

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.