回答編集履歴

1

fix template options

2020/08/09 00:21

投稿

YufanLou
YufanLou

スコア463

test CHANGED
@@ -136,17 +136,35 @@
136
136
 
137
137
  TEMPLATES = [
138
138
 
139
- {
139
+ {
140
-
140
+
141
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
141
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
142
-
142
+
143
- 'DIRS': [
143
+ 'DIRS': [
144
-
144
+
145
- os.path.join(BASE_DIR, 'templates'),
145
+ os.path.join(BASE_DIR, 'templates'),
146
-
146
+
147
- ],
147
+ ],
148
+
148
-
149
+ 'OPTIONS': {
150
+
151
+ 'context_processors': [
152
+
153
+ 'django.template.context_processors.debug',
154
+
155
+ 'django.template.context_processors.request',
156
+
157
+ 'django.contrib.auth.context_processors.auth',
158
+
159
+ 'django.contrib.messages.context_processors.messages',
160
+
161
+ ],
162
+
163
+ },
164
+
149
- }
165
+ }
166
+
167
+ ]
150
168
 
151
169
 
152
170