From 9de6e613d243cf8a8b0a7ba5730f7731b3e3add0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 28 Oct 2022 12:27:13 +0200 Subject: [PATCH 1/1] revert setting --- src/wolnelektury/settings/basic.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/wolnelektury/settings/basic.py b/src/wolnelektury/settings/basic.py index 2e3d81dc7..11eb7cfe4 100644 --- a/src/wolnelektury/settings/basic.py +++ b/src/wolnelektury/settings/basic.py @@ -43,6 +43,7 @@ SITE_ID = 1 TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'APP_DIRS': True, 'OPTIONS': { 'context_processors': ( 'django.contrib.auth.context_processors.auth', @@ -54,16 +55,8 @@ TEMPLATES = [{ 'wolnelektury.context_processors.extra_settings', 'search.context_processors.search_form', ), - 'loaders': [ - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', - ], }, }] -if not DEBUG: - TEMPLATES['loaders'] = [ - ('django.template.loaders.cached.Loader', TEMPLATES['loaders']) - ] MIDDLEWARE = [ 'debug_toolbar.middleware.DebugToolbarMiddleware', -- 2.20.1