Commit 671a275e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Update critically out-of-date Django

parent d6c8df35
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -45,13 +45,6 @@ MIDDLEWARE_CLASSES = (
	'htmlmin.middleware.MarkRequestMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
	'django.contrib.auth.context_processors.auth',
	'django.core.context_processors.i18n',
	'django.core.context_processors.request',
	'django.core.context_processors.debug',
)

ROOT_URLCONF = 'kodo_sso.urls'
WSGI_APPLICATION = 'kodo_sso.wsgi.application'

@@ -84,6 +77,20 @@ STATICFILES_DIRS = (
	join(PACKAGE_DIR, 'static'),
)

TEMPLATE_DIRS = (
TEMPLATES = [
	{
		'BACKEND': 'django.template.backends.django.DjangoTemplates',
		'DIRS': [
			join(PACKAGE_DIR, 'templates'),
)
		],
		'APP_DIRS': True,
		'OPTIONS': {
			'context_processors': (
				'django.contrib.auth.context_processors.auth',
				'django.template.context_processors.i18n',
				'django.template.context_processors.request',
				'django.template.context_processors.debug',
			),
		},
	},
]
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ from . import *
SECRET_KEY = 'hjo$s%#k4(lf&-!tad0qeov51%k$@0n**1m9w*o91=v4k3ss$v'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = TEMPLATE_DEBUG = True
DEBUG = True
INTERNAL_IPS = Network('127.0.0.1')

CACHE_MIDDLEWARE_SECONDS = 0
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ setup(
	},

	install_requires = [
		'Django==1.9',
		'Django~=1.11',
		'beautifulsoup4~=4.4',
		'django-htmlmin~=0.8',
		'django-oidc-provider~=0.2',