Skip to content

Commit d37ba4a

Browse files
committed
Remove deprecated settings from example
1 parent 7fb0ecd commit d37ba4a

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

example/example/settings.py

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363

6464

6565
DEBUG = True
66-
TEMPLATE_DEBUG = DEBUG
6766

6867
ADMINS = (
6968
# ('Your Name', '[email protected]'),
@@ -122,32 +121,26 @@
122121

123122
ROOT_URLCONF = 'example.urls'
124123

125-
# Django < 1.8
126-
TEMPLATE_DIRS = (
127-
# Put strings here, like "/home/html/django_templates"
128-
# Always use forward slashes, even on Windows.
129-
# Don't forget to use absolute paths, not relative paths.
130-
)
124+
ROOT_URLCONF = "example.urls"
131125

132-
# Django >= 1.8
133126
TEMPLATES = [
134127
{
135-
'BACKEND': 'django.template.backends.django.DjangoTemplates',
136-
'DIRS': [
128+
"BACKEND": "django.template.backends.django.DjangoTemplates",
129+
"DIRS": [
137130
# insert your TEMPLATE_DIRS here
138131
],
139-
'APP_DIRS': True,
140-
'OPTIONS': {
141-
'context_processors': [
132+
"APP_DIRS": True,
133+
"OPTIONS": {
134+
"context_processors": [
142135
# Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
143136
# list if you haven't customized them:
144-
'django.contrib.auth.context_processors.auth',
145-
'django.template.context_processors.debug',
146-
'django.template.context_processors.i18n',
147-
'django.template.context_processors.media',
148-
'django.template.context_processors.static',
149-
'django.template.context_processors.tz',
150-
'django.contrib.messages.context_processors.messages',
137+
"django.contrib.auth.context_processors.auth",
138+
"django.template.context_processors.debug",
139+
"django.template.context_processors.i18n",
140+
"django.template.context_processors.media",
141+
"django.template.context_processors.static",
142+
"django.template.context_processors.tz",
143+
"django.contrib.messages.context_processors.messages",
151144
],
152145
},
153146
# TEMPLATE_LOADERS = (

0 commit comments

Comments
 (0)