18F / 2015-foia-hub

A consolidated FOIA request hub.
Other
49 stars 17 forks source link

Change Django/application settings to use environment variables #491

Closed khandelwal closed 9 years ago

khandelwal commented 9 years ago

Currently we use a local_settings.py file to contain settings such as database connection information. Let's change that to use environment variables.

This task is complete when:

cmc333333 commented 9 years ago

Something that's worked well for us on peacecorps is to continue to separate vars into production, dev, etc. settings files, but use env vars to switch between them (DJANGO_SETTINGS). This probably wouldn't make sense between staging and production, though.

khandelwal commented 9 years ago

This pull request makes some settings into environment variables https://github.com/18F/foia-hub/pull/512/files and encourages the use of autoenv.