mysite.settings.production   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 16
dl 0
loc 29
rs 10
c 0
b 0
f 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