|
63 | 63 |
|
64 | 64 |
|
65 | 65 | DEBUG = True |
66 | | -TEMPLATE_DEBUG = DEBUG |
67 | 66 |
|
68 | 67 | ADMINS = ( |
69 | 68 | # ('Your Name', '[email protected]'), |
|
122 | 121 |
|
123 | 122 | ROOT_URLCONF = 'example.urls' |
124 | 123 |
|
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" |
131 | 125 |
|
132 | | -# Django >= 1.8 |
133 | 126 | TEMPLATES = [ |
134 | 127 | { |
135 | | - 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
136 | | - 'DIRS': [ |
| 128 | + "BACKEND": "django.template.backends.django.DjangoTemplates", |
| 129 | + "DIRS": [ |
137 | 130 | # insert your TEMPLATE_DIRS here |
138 | 131 | ], |
139 | | - 'APP_DIRS': True, |
140 | | - 'OPTIONS': { |
141 | | - 'context_processors': [ |
| 132 | + "APP_DIRS": True, |
| 133 | + "OPTIONS": { |
| 134 | + "context_processors": [ |
142 | 135 | # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this |
143 | 136 | # 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", |
151 | 144 | ], |
152 | 145 | }, |
153 | 146 | # TEMPLATE_LOADERS = ( |
|
0 commit comments