]> git.ipfire.org Git - thirdparty/patchwork.git/commit
settings: Use environment variables by default
authorStephen Finucane <stephen.finucane@intel.com>
Tue, 9 Feb 2016 12:12:37 +0000 (12:12 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Sun, 14 Feb 2016 16:26:03 +0000 (16:26 +0000)
commit7667078e643e02abc4475742894582d2fd3aab54
tree943d84b3600b42ef322a76081847e688191946d3
parent8d48e8ccf6e21c0ecf1b1a6eaf9fcfd0584902e9
settings: Use environment variables by default

The Django documentation suggests using environment variables as a way
to allow devs to commit settings files via source control without
including confidential information therein [1]. As such, change the
provided 'production' settings to do this. This should promote best
practices while also ensuring provisioning tools like
'ansible-django-stack' [2] work as expected.

[1] https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
[2] https://github.com/jcalazan/ansible-django-stack

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/settings/production.example.py
patchwork/wsgi.py