You should be using local_settings.py for cookiecutter-django. It's an anti-pattern that doesn't apply to gunicorn setups like this.