File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 2020# Quick-start development settings - unsuitable for production
2121# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
2222
23- # SECURITY WARNING: keep the secret key used in production secret !
23+ # SECURITY WARNING: change this before deploying to production!
2424SECRET_KEY = 'i+acxn5(akgsn!sr4^qgf(^m&*@+g1@u^t@=8s@axc41ml*f=s'
2525
2626# SECURITY WARNING: don't run with debug turned on in production!
7373
7474
7575# Database
76- # https://docs.djangoproject.com/en/1.8 /ref/settings/#databases
76+ # https://docs.djangoproject.com/en/1.9 /ref/settings/#databases
7777
7878DATABASES = {
7979 'default' : {
9292USE_TZ = True
9393
9494
95- # Parse database configuration from $DATABASE_URL
96- DATABASES ['default' ] = dj_database_url .config ()
97-
98- # Enable Persistent Connections
99- DATABASES ['default' ]['CONN_MAX_AGE' ] = 500
95+ # Update database configuration with $DATABASE_URL.
96+ db_from_env = dj_database_url .config (conn_max_age = 500 )
97+ DATABASES ['default' ].update (db_from_env )
10098
10199# Honor the 'X-Forwarded-Proto' header for request.is_secure()
102100SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO' , 'https' )
You can’t perform that action at this time.
0 commit comments