]> git.parisson.com Git - mezzo.git/commitdiff
[settings] : add THEME_APP and THEME_FOLDER
authorEmilie <zawadzki@ircam.fr>
Tue, 17 Jul 2018 10:02:17 +0000 (12:02 +0200)
committerEmilie <zawadzki@ircam.fr>
Tue, 17 Jul 2018 10:02:17 +0000 (12:02 +0200)
app/local_settings.py
app/settings.py

index a1f6bc03db73a7c6df152238d2f5c13b4ca8f64d..fccccb7aefd10f740433f4eacb67589c913825cb 100644 (file)
@@ -67,4 +67,7 @@ DEFAULT_FROM_EMAIL = 'default@default.org' # another address, default one
 DEFAULT_TO_EMAIL = 'recipient@recipient.org' # default recipient, for your tests
 EMAIL_SUBJECT_PREFIX = "[PREFIX]" # prefix title in email
 SITE_TITLE = 'Your Site'
-SITE_TAGLINE = 'This is a Mezzo site'
\ No newline at end of file
+SITE_TAGLINE = 'This is a Mezzo site'
+
+THEME_APP = 'organization_themes.ircam-www-theme'
+THEME_FOLDER = 'ircam-www-theme'
index 20d2090c2c9d8ed7009d1e2ab5f91b955e2add87..54537f126d13330272671a3e5e3350d3899c885c 100644 (file)
@@ -42,6 +42,16 @@ except ImportError as e:
     if "local_settings" not in str(e):
         raise e
 
+# Please define THEME_APP in local_settings
+INSTALLED_APPS.insert(1, THEME_APP)
+
+HOST_THEMES = [
+    ('example.com', THEME_APP),
+]
+
+# Please define THEME_FOLDER in local_settings
+LOCALE_PATHS += (os.path.join(PROJECT_ROOT, 'lib/mezzanine-organization-themes/organization_themes/' + THEME_FOLDER + '/locale/'),)
+
 
 ####################
 # DYNAMIC SETTINGS #
@@ -59,3 +69,6 @@ except ImportError:
     pass
 else:
     set_dynamic_settings(globals())
+
+
+