From: Guillaume Pellerin Date: Mon, 5 Mar 2018 13:24:13 +0000 (+0100) Subject: Upgrade settings against mezzanine 4.2.3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=020943bc9d8891e985c1869e3122de9edc6f3d3b;p=mezzo.git Upgrade settings against mezzanine 4.2.3 --- diff --git a/app/settings.py b/app/settings.py index ade129cf..3111b694 100644 --- a/app/settings.py +++ b/app/settings.py @@ -239,7 +239,7 @@ INSTALLED_APPS = [ "organization_themes", "organization_themes.ircam-www-theme", # "organization_themes.vertigo-themes.vertigo_ircam_fr", - # "organization_themes.vertigo-themes.vertigo_starts_eu", + "organization_themes.vertigo-themes.vertigo_starts_eu", # "organization_themes.vertigo-themes.www_starts_eu", "modeltranslation", "dal", @@ -278,6 +278,7 @@ INSTALLED_APPS = [ "organization.agenda", "organization.shop", "organization.job", + "organization.custom", #"sorl.thumbnail", # required for thumbnail support "django_instagram", 'hijack', @@ -288,7 +289,8 @@ INSTALLED_APPS = [ HOST_THEMES = [ - ('example.com', 'organization_themes.ircam-www-theme'), + ('foo.ircam.fr', 'organization_themes.ircam-www-theme'), + ('bar.ircam.fr', 'organization_themes.vertigo-themes.vertigo_starts_eu'), ] BOWER_COMPONENTS_ROOT = '/srv/bower/' @@ -309,35 +311,29 @@ MIGRATION_MODULES = { "generic": "migrations.generic", } -TEMPLATES = [{'APP_DIRS': True, +TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'builtins': ['mezzanine.template.loader_tags'], 'context_processors': ('django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', - 'django.core.context_processors.debug', - 'django.core.context_processors.i18n', - 'django.core.context_processors.static', - 'django.core.context_processors.media', - 'django.core.context_processors.request', - 'django.core.context_processors.tz', + 'django.template.context_processors.debug', + 'django.template.context_processors.i18n', + 'django.template.context_processors.static', + 'django.template.context_processors.media', + 'django.template.context_processors.request', + 'django.template.context_processors.tz', 'mezzanine.conf.context_processors.settings', 'mezzanine.pages.context_processors.page', 'organization.core.context_processors.organization_settings', - ) + ), + 'loaders': [ + 'mezzanine.template.loaders.host_themes.Loader', + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + ], } }] - -TEMPLATE_LOADERS_OPTIONS = [('django.template.loaders.cached.Loader', [ - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', - ])] - -if not DEBUG: - TEMPLATES[0]['OPTIONS']['loaders'] = TEMPLATE_LOADERS_OPTIONS - TEMPLATES[0]['APP_DIRS'] = False - - # List of middleware classes to use. Order is important; in the request phase, # these middleware classes will be applied in the order given, and in the # response phase the middleware will be applied in reverse order. @@ -353,11 +349,8 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - "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: diff --git a/bin b/bin index 943219bb..3ab8493e 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 943219bb8232218d393d97982dc25ca67b463827 +Subproject commit 3ab8493eb7d5834c7284174331a339a6f30bce38 diff --git a/lib/mezzanine b/lib/mezzanine index 9c37f3f7..b320d714 160000 --- a/lib/mezzanine +++ b/lib/mezzanine @@ -1 +1 @@ -Subproject commit 9c37f3f7701cbb2ad06b79867351b9e8f15817bf +Subproject commit b320d71498a0c0d0db2b37094a6e19b7c1275b58 diff --git a/lib/mezzanine-organization b/lib/mezzanine-organization index 9d3c2da2..6b0cdc7e 160000 --- a/lib/mezzanine-organization +++ b/lib/mezzanine-organization @@ -1 +1 @@ -Subproject commit 9d3c2da26aeabe8bf910e4288ee2440038961b4d +Subproject commit 6b0cdc7eeec8d8494a4af498627ce635654075a6