Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
jerrykan committed Feb 4, 2021
commit f84820f259c3c722109c82bf186fbac2fc0b8239
5 changes: 4 additions & 1 deletion roundup/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def install_demo(home, backend, template):
from roundup import init, instance, password

# set up the config for this tracker
config = configuration.CoreConfig()
template_cfg = configuration.UserConfig(template + "/config_ini.ini")
config = configuration.CoreConfig(settings={
i.name: i.get() for i in template_cfg.items()
})
config['TRACKER_HOME'] = home
config['MAIL_DOMAIN'] = 'localhost'
config['DATABASE'] = 'db'
Expand Down