]> git.parisson.com Git - mezzo.git/commitdiff
Upgrade settings against mezzanine 4.2.3
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 5 Mar 2018 13:24:13 +0000 (14:24 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 5 Mar 2018 13:24:13 +0000 (14:24 +0100)
app/settings.py
bin
lib/mezzanine
lib/mezzanine-organization

index ade129cf8b973ce3decf6d10bc19480a833c84cd..3111b694ba2c2accfc9ac045b604fc991547e8ed 100644 (file)
@@ -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 943219bb8232218d393d97982dc25ca67b463827..3ab8493eb7d5834c7284174331a339a6f30bce38 160000 (submodule)
--- a/bin
+++ b/bin
@@ -1 +1 @@
-Subproject commit 943219bb8232218d393d97982dc25ca67b463827
+Subproject commit 3ab8493eb7d5834c7284174331a339a6f30bce38
index 9c37f3f7701cbb2ad06b79867351b9e8f15817bf..b320d71498a0c0d0db2b37094a6e19b7c1275b58 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 9c37f3f7701cbb2ad06b79867351b9e8f15817bf
+Subproject commit b320d71498a0c0d0db2b37094a6e19b7c1275b58
index 9d3c2da26aeabe8bf910e4288ee2440038961b4d..6b0cdc7eeec8d8494a4af498627ce635654075a6 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 9d3c2da26aeabe8bf910e4288ee2440038961b4d
+Subproject commit 6b0cdc7eeec8d8494a4af498627ce635654075a6