Changeset e92edb071fbe moved these settings above settings_local, but
this forces the user to set them in settings_local or they will contain
the 'default' theme path rather than the THEME-specific path. Move them
back down to pick up local THEME, but don't override them if local set them.
diff -r 913440399088 -r 0c4b31a206bd settings.py
--- a/settings.py Mon Nov 16 12:47:42 2009 +0200
+++ b/settings.py Mon Nov 23 13:55:49 2009 -0800
@@ -233,8 +233,6 @@
SOCIAL_BOOKMARKS = ('delicious', 'reddit', 'slashdot', 'digg', 'technorati', 'google')
LOCALE_PATHS = (os.path.join(PROJECT_ROOT, 'locale'), )
-THEME_STATIC_ROOT = STATIC_ROOT # So this can be overridden
-THEME_STATIC_URL = os.path.join(STATIC_URL, THEME + '/')
THEMES_DIR = os.path.join(PROJECT_ROOT, "themes") # Byteflow themes. Your themes can be out of PROJECT_ROOT.
TEMPLATE_DEBUG = DEBUG
@@ -247,6 +245,12 @@
DEBUG = False
ADDITIONAL_APPS = ('pingback', 'watchlist')
+if not hasattr(globals(), 'THEME_STATIC_ROOT'):
+ THEME_STATIC_ROOT = STATIC_ROOT
+
+if not hasattr(globals(), 'THEME_STATIC_URL'):
+ THEME_STATIC_URL = os.path.join(STATIC_URL, THEME + '/')
+
try:
INSTALLED_APPS += ADDITIONAL_APPS
except NameError:
Thanks, applied and pushed. :-)
--
Alexander