Skip to content

Commit 32cd737

Browse files
committed
docs(api): update doc pointers for Django 1.11
1 parent 1f93f21 commit 32cd737

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

rootfs/api/middleware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
HTTP middleware for the Deis REST API.
33
4-
See https://docs.djangoproject.com/en/1.10/topics/http/middleware/
4+
See https://docs.djangoproject.com/en/1.11/topics/http/middleware/
55
"""
66

77
from api import __version__
@@ -11,6 +11,7 @@ class APIVersionMiddleware(object):
1111
"""
1212
Include that REST API version with each response.
1313
"""
14+
1415
def __init__(self, get_response):
1516
self.get_response = get_response
1617

rootfs/api/settings/production.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType
1010

1111
# 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
1313
DEBUG = bool(os.environ.get('DEIS_DEBUG', False))
1414

1515
# If set to True, Django's normal exception handling of view functions
1616
# 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
1818
DEBUG_PROPAGATE_EXCEPTIONS = False
1919

2020
# 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
2222
SILENCED_SYSTEM_CHECKS = [
2323
'security.W004',
2424
'security.W008'
@@ -27,7 +27,7 @@
2727
CONN_MAX_AGE = 60 * 3
2828

2929
# 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
3131
ALLOWED_HOSTS = ['*']
3232

3333
# Local time zone for this installation. Choices can be found here:
@@ -42,7 +42,7 @@
4242

4343
# If you set this to False, Django will make some optimizations so as not
4444
# 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
4646
USE_I18N = False
4747

4848
# If you set this to False, Django will not format dates, numbers and
@@ -140,7 +140,7 @@
140140
SECURE_BROWSER_XSS_FILTER = True
141141

142142
# 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
144144
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
145145

146146
# standard datetime format used for logging, model timestamps, etc.
@@ -353,7 +353,7 @@
353353
'PASSWORD': os.environ.get('DEIS_DATABASE_PASSWORD', ''),
354354
'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''),
355355
'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
357357
'CONN_MAX_AGE': 600,
358358
}
359359
}

rootfs/api/settings/testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from api.settings.production import * # noqa
77

88
# A boolean that turns on/off debug mode.
9-
# https://docs.djangoproject.com/en/1.9/ref/settings/#debug
9+
# https://docs.djangoproject.com/en/1.11/ref/settings/#debug
1010
DEBUG = True
1111

1212
# If set to True, Django's normal exception handling of view functions
1313
# will be suppressed, and exceptions will propagate upwards
14-
# https://docs.djangoproject.com/en/1.9/ref/settings/#debug-propagate-exceptions
14+
# https://docs.djangoproject.com/en/1.11/ref/settings/#debug-propagate-exceptions
1515
DEBUG_PROPAGATE_EXCEPTIONS = True
1616

1717
# scheduler for testing

rootfs/api/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
88
"""
99

1010
import os

0 commit comments

Comments
 (0)