From: Emilie Date: Tue, 17 Jul 2018 10:02:17 +0000 (+0200) Subject: [settings] : add THEME_APP and THEME_FOLDER X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ef31b9a6669a897e5456c06cea3b50d01f8fefbc;p=mezzo.git [settings] : add THEME_APP and THEME_FOLDER --- diff --git a/app/local_settings.py b/app/local_settings.py index a1f6bc03..fccccb7a 100644 --- a/app/local_settings.py +++ b/app/local_settings.py @@ -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' diff --git a/app/settings.py b/app/settings.py index 20d2090c..54537f12 100644 --- a/app/settings.py +++ b/app/settings.py @@ -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()) + + +