setup loaders to reduce warnings
@@ -346,7 +346,6 @@ TEMPLATES = [
'DIRS': [
(os.path.join(PROJECT_ROOT, "templates"),)
],
- 'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
"django.contrib.auth.context_processors.auth",
@@ -360,6 +359,11 @@ TEMPLATES = [
"mezzanine.conf.context_processors.settings",
"mezzanine.pages.context_processors.page",
],
+ "loaders": [
+ "mezzanine.template.loaders.host_themes.Loader",
+ "django.template.loaders.filesystem.Loader",
+ "django.template.loaders.app_directories.Loader",
+ ]
},
},
]
@@ -378,8 +382,6 @@ MIDDLEWARE_CLASSES = (
"django.contrib.messages.middleware.MessageMiddleware",
"mezzanine.core.request.CurrentRequestMiddleware",
"mezzanine.core.middleware.RedirectFallbackMiddleware",
- "mezzanine.core.middleware.TemplateForDeviceMiddleware",
- "mezzanine.core.middleware.TemplateForHostMiddleware",
"mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware",
"mezzanine.core.middleware.SitePermissionMiddleware",
# Uncomment the following if using any of the SSL settings:
