Skip to content

Commit

Permalink
Revert changes to template config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored May 27, 2024
1 parent efcc1c9 commit 6d6ce0c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions api/conf/settings/base.py
Original file line number Diff line number Diff line change
@@ -40,18 +40,13 @@

ROOT_URLCONF = "conf.urls"

loaders = [
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
]
cached_loaders = [("django.template.loaders.cached.Loader", loaders)]

TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [
BASE_DIR / "api" / "templates",
],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
@@ -61,7 +56,6 @@
# Make the ENVIRONMENT env var available for all contexts
"conf.context_processors.export_environment",
],
"loaders": loaders if ENVIRONMENT == "local" else cached_loaders,
},
},
]

0 comments on commit 6d6ce0c

Please sign in to comment.