Skip to content

Commit f84820f

Browse files
committed
Set custom template settings when using roundup-demo
Some templates like `jinja2` and `responsive` need certain settings in their `config.ini` otherwise the pages won't display correctly. By pulling in these custom settings when running `roundup-demo` we ensure that the pages will display correctly out of the box with no extra changes required.
1 parent d217654 commit f84820f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roundup/demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def install_demo(home, backend, template):
3939
from roundup import init, instance, password
4040

4141
# set up the config for this tracker
42-
config = configuration.CoreConfig()
42+
template_cfg = configuration.UserConfig(template + "/config_ini.ini")
43+
config = configuration.CoreConfig(settings={
44+
i.name: i.get() for i in template_cfg.items()
45+
})
4346
config['TRACKER_HOME'] = home
4447
config['MAIL_DOMAIN'] = 'localhost'
4548
config['DATABASE'] = 'db'

0 commit comments

Comments
 (0)