diff demo.py @ 4713:c92fcb355911

Template responsive: make demo.py work out of the box with it, by setting the static_files config.ini setting to "static".
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 28 Dec 2012 00:18:45 +0100
parents 7a032013bb6a
children 324cbd9f7d0e
line wrap: on
line diff
--- a/demo.py	Thu Dec 27 23:31:17 2012 +0100
+++ b/demo.py	Fri Dec 28 00:18:45 2012 +0100
@@ -79,6 +79,9 @@
 
     # write the config
     config['INSTANT_REGISTRATION'] = 1
+    # FIXME: Move template-specific demo initialization into the templates.
+    if template == 'responsive':
+        config['STATIC_FILES'] = "static"
     config.save(os.path.join(home, config.INI_FILE))
 
     # open the tracker and initialise

Roundup Issue Tracker: http://roundup-tracker.org/