Spaces:
Sleeping
Sleeping
Update MistryMart/settings.py
Browse files- MistryMart/settings.py +2 -10
MistryMart/settings.py
CHANGED
|
@@ -69,16 +69,8 @@ ROOT_URLCONF = 'MistryMart.urls'
|
|
| 69 |
TEMPLATES = [
|
| 70 |
{
|
| 71 |
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
| 72 |
-
'DIRS': [
|
| 73 |
-
|
| 74 |
-
BASE_DIR / 'Accounts/templates',
|
| 75 |
-
BASE_DIR / 'Analytics/templates',
|
| 76 |
-
BASE_DIR / 'Boxes/templates',
|
| 77 |
-
BASE_DIR / 'Gamification/templates',
|
| 78 |
-
BASE_DIR / 'Home/templates',
|
| 79 |
-
BASE_DIR / 'Order/templates',
|
| 80 |
-
],
|
| 81 |
-
'APP_DIRS': True,
|
| 82 |
'OPTIONS': {
|
| 83 |
'context_processors': [
|
| 84 |
'django.template.context_processors.request',
|
|
|
|
| 69 |
TEMPLATES = [
|
| 70 |
{
|
| 71 |
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
| 72 |
+
'DIRS': [BASE_DIR / 'templates'], # Only one DIRS key, for project-level templates
|
| 73 |
+
'APP_DIRS': True, # This automatically finds templates in each app's templates/ folder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
'OPTIONS': {
|
| 75 |
'context_processors': [
|
| 76 |
'django.template.context_processors.request',
|