File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1212import os
13+ import dj_database_url
14+
1315BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
1416
1517
1618# Quick-start development settings - unsuitable for production
1719# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
1820
1921# SECURITY WARNING: keep the secret key used in production secret!
20- SECRET_KEY = '3iy-!-d$!pc_ll$#$elg&cpr@*tfn-d5&n9ag=)%#()t$$5%5^'
22+ DEFAULT_SECRET_KEY = '3iy-!-d$!pc_ll$#$elg&cpr@*tfn-d5&n9ag=)%#()t$$5%5^'
23+ SECRET_KEY = os .environ .get ('SECRET_KEY' , DEFAULT_SECRET_KEY )
2124
2225# SECURITY WARNING: don't run with debug turned on in production!
2326DEBUG = True
8386
8487
8588# Parse database configuration from $DATABASE_URL
86- import dj_database_url
8789DATABASES ['default' ] = dj_database_url .config ()
8890
8991# Honor the 'X-Forwarded-Proto' header for request.is_secure()
9395ALLOWED_HOSTS = ['*' ]
9496
9597# Static asset configuration
96- import os
9798BASE_DIR = os .path .dirname (os .path .abspath (__file__ ))
9899STATIC_ROOT = 'staticfiles'
99100STATIC_URL = '/static/'
You can’t perform that action at this time.
0 commit comments