Total Complexity | 0 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | SECURITY WARNING Keep these settings secret, they are for production. |
||
3 | """ |
||
4 | |||
5 | from mysite.settings.base import * |
||
6 | |||
7 | SECRET_KEY = 'mykey' |
||
8 | |||
9 | STATIC_ROOT = os.path.join(BASE_DIR, "static") |
||
10 | |||
11 | DEBUG = False |
||
12 | |||
13 | # Settings for database on deployment server |
||
14 | DATABASES = { |
||
15 | 'default': { |
||
16 | 'ENGINE': 'django.db.backends.postgresql_psycopg2', |
||
17 | 'NAME': 'django_template_db', |
||
18 | 'USER': 'django_template', |
||
19 | 'PASSWORD': 'databasepassword', |
||
20 | 'HOST': 'server ip address', |
||
21 | 'PORT': '5432', |
||
22 | } |
||
23 | } |
||
24 | |||
25 | # Settings for serving with https |
||
26 | SESSION_COOKIE_SECURE = True |
||
27 | SESSION_COOKIE_HTTPONLY = True |
||
28 | SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https') |
||
29 |