Store things in env better
This commit is contained in:
parent
8584ab2fcd
commit
d169316e4a
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,2 @@
|
||||||
DEBUG=true
|
DEBUG=true
|
||||||
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
|
|
||||||
SECRET_KEY=%*v!183hd8(4j)hg6ylyor34iq_um^&k!0pk_1efn_$j76=so2
|
SECRET_KEY=%*v!183hd8(4j)hg6ylyor34iq_um^&k!0pk_1efn_$j76=so2
|
||||||
|
|
|
@ -6,10 +6,10 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# 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!
|
# 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'
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||||
|
|
Reference in a new issue