1
Fork 0

Store things in env better

This commit is contained in:
Jake Howard 2016-11-26 13:27:54 +00:00
parent 8584ab2fcd
commit d169316e4a
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,2 @@
DEBUG=true
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
SECRET_KEY=%*v!183hd8(4j)hg6ylyor34iq_um^&k!0pk_1efn_$j76=so2

View file

@ -6,10 +6,10 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ALLOWED_HOSTS = ['*']
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.environ['DEBUG']
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'n_v3f*dcdg=ni-9ftiyo@c2%gkcr=qg(2bni)4borex-$9&1$v'
SECRET_KEY = os.environ['SECRET_KEY']
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'