Serve and setup the mediagoblin "linked theme" assets directory
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 6 Jul 2012 22:59:30 +0000 (17:59 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 14 Jul 2012 17:55:14 +0000 (12:55 -0500)
mediagoblin/config_spec.ini
paste.ini

index 03243e0b0f0f6ff48032e8ed0857c4762205aa86..585aaacf0fbf681cab7094f4991390f0b8e57588 100644 (file)
@@ -63,6 +63,7 @@ geolocation_map_visible = boolean(default=False)
 # Theming stuff
 theme_install_dir = string(default="%(here)s/user_dev/themes/")
 theme_web_path = string(default="/theme_static/")
+theme_linked_assets_dir = string(default="%(here)s/theme_static/")
 theme = string()
 
 
index 13c152094898d66a29edad64754be1cd7bfa3c85..103bb60959fbae2ad0a48332fd9bad6fdd8cbab1 100644 (file)
--- a/paste.ini
+++ b/paste.ini
@@ -13,6 +13,7 @@ use = egg:Paste#urlmap
 / = mediagoblin
 /mgoblin_media/ = publicstore_serve
 /mgoblin_static/ = mediagoblin_static
+/theme_static/ = theme_static
 
 [app:mediagoblin]
 use = egg:mediagoblin#app
@@ -51,6 +52,11 @@ use = egg:Paste#static
 document_root = %(here)s/mediagoblin/static/
 cache_max_age = 86400
 
+[app:theme_static]
+use = egg:Paste#static
+document_root = %(here)s/user_dev/theme_static/
+cache_max_age = 86400
+
 [filter:beaker]
 use = egg:Beaker#beaker_session
 cache_dir = %(here)s/user_dev/beaker