openoakland / OakCrime-Decommissioned

Code supporting citizen analysis of crime in Oakland, CA
22 stars 16 forks source link

Split settings by environment #26

Closed adborden closed 5 years ago

adborden commented 5 years ago

Noticed a few "required" settings like ADMIN and email settings that are only important for production. I prefer to keep settings declarative and avoid conditional logic which can hide errors. People don't usually write tests for their configurations, so it's best to keep it simple and declarative.

By default, the development.py settings are used. In production we'll set DJANGO_SETTINGS_MODULE=showChime.settings.production to use the production settings.

adborden commented 5 years ago

Rebased for the merge conflict.