From bd89a9bc67065dee726151fff41a99e0b1fb37ac Mon Sep 17 00:00:00 2001 From: Charles Muchogo Date: Thu, 2 Nov 2023 15:08:07 +0300 Subject: [PATCH] fix: remove template loader config in production (#258) --- config/settings/production.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/settings/production.py b/config/settings/production.py index f07ea5b..d601dea 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -72,20 +72,6 @@ DEFAULT_FILE_STORAGE = "mycarehub.utils.storages.MediaRootGoogleCloudStorage" MEDIA_URL = f"https://storage.googleapis.com/{GS_BUCKET_NAME}/media/" -# TEMPLATES -# ------------------------------------------------------------------------------ -# https://docs.djangoproject.com/en/dev/ref/settings/#templates -TEMPLATES[-1]["OPTIONS"]["loaders"] = [ # type: ignore[index] # noqa F405 - ( - "django.template.loaders.cached.Loader", - [ - "django.template.loaders.filesystem.Loader", - "django.template.loaders.app_directories.Loader", - ], - ) -] - - # Anymail # ------------------------------------------------------------------------------ # https://anymail.readthedocs.io/en/stable/installation/#installing-anymail