|
9 | 9 | from django_auth_ldap.config import LDAPSearch, GroupOfNamesType |
10 | 10 |
|
11 | 11 | # A boolean that turns on/off debug mode. |
12 | | -# https://docs.djangoproject.com/en/1.9/ref/settings/#debug |
| 12 | +# https://docs.djangoproject.com/en/1.11/ref/settings/#debug |
13 | 13 | DEBUG = bool(os.environ.get('DEIS_DEBUG', False)) |
14 | 14 |
|
15 | 15 | # If set to True, Django's normal exception handling of view functions |
16 | 16 | # will be suppressed, and exceptions will propagate upwards |
17 | | -# https://docs.djangoproject.com/en/1.9/ref/settings/#debug-propagate-exceptions |
| 17 | +# https://docs.djangoproject.com/en/1.11/ref/settings/#debug-propagate-exceptions |
18 | 18 | DEBUG_PROPAGATE_EXCEPTIONS = False |
19 | 19 |
|
20 | 20 | # Silence two security messages around SSL as router takes care of them |
21 | | -# https://docs.djangoproject.com/en/1.9/ref/checks/#security |
| 21 | +# https://docs.djangoproject.com/en/1.11/ref/checks/#security |
22 | 22 | SILENCED_SYSTEM_CHECKS = [ |
23 | 23 | 'security.W004', |
24 | 24 | 'security.W008' |
|
27 | 27 | CONN_MAX_AGE = 60 * 3 |
28 | 28 |
|
29 | 29 | # SECURITY: change this to allowed fqdn's to prevent host poisioning attacks |
30 | | -# https://docs.djangoproject.com/en/1.6/ref/settings/#allowed-hosts |
| 30 | +# https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts |
31 | 31 | ALLOWED_HOSTS = ['*'] |
32 | 32 |
|
33 | 33 | # Local time zone for this installation. Choices can be found here: |
|
42 | 42 |
|
43 | 43 | # If you set this to False, Django will make some optimizations so as not |
44 | 44 | # to load the internationalization machinery. |
45 | | -# https://docs.djangoproject.com/en/1.9/ref/settings/#use-i18n |
| 45 | +# https://docs.djangoproject.com/en/1.11/ref/settings/#use-i18n |
46 | 46 | USE_I18N = False |
47 | 47 |
|
48 | 48 | # If you set this to False, Django will not format dates, numbers and |
|
140 | 140 | SECURE_BROWSER_XSS_FILTER = True |
141 | 141 |
|
142 | 142 | # Honor HTTPS from a trusted proxy |
143 | | -# see https://docs.djangoproject.com/en/1.6/ref/settings/#secure-proxy-ssl-header |
| 143 | +# see https://docs.djangoproject.com/en/1.11/ref/settings/#secure-proxy-ssl-header |
144 | 144 | SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') |
145 | 145 |
|
146 | 146 | # standard datetime format used for logging, model timestamps, etc. |
|
353 | 353 | 'PASSWORD': os.environ.get('DEIS_DATABASE_PASSWORD', ''), |
354 | 354 | 'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''), |
355 | 355 | 'PORT': os.environ.get('DEIS_DATABASE_SERVICE_PORT', 5432), |
356 | | - # https://docs.djangoproject.com/en/1.9/ref/databases/#persistent-connections |
| 356 | + # https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections |
357 | 357 | 'CONN_MAX_AGE': 600, |
358 | 358 | } |
359 | 359 | } |
|
0 commit comments