Skip to content

Commit c63d45d

Browse files
committed
Altered TEMPLATES variable to match admin.E404 error
1 parent 342081a commit c63d45d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ django/media/
66
django/static/
77
dump.*
88
.env/
9+
.idea/

django/example/settings.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
DEBUG = True
1111

12-
ALLOWED_HOSTS = []
12+
ALLOWED_HOSTS = ['0.0.0.0']
1313

1414
INTERNAL_IPS = ["127.0.0.1"]
1515

@@ -51,8 +51,13 @@
5151
"BACKEND": "django.template.backends.django.DjangoTemplates",
5252
"DIRS": [],
5353
"APP_DIRS": True,
54-
"OPTIONS": {
55-
"context_processors": ["django.contrib.auth.context_processors.auth"]
54+
'OPTIONS': {
55+
'context_processors': [
56+
'django.template.context_processors.debug',
57+
'django.template.context_processors.request',
58+
'django.contrib.auth.context_processors.auth',
59+
'django.contrib.messages.context_processors.messages',
60+
],
5661
},
5762
}
5863
]

0 commit comments

Comments
 (0)