Mercurial > p > roundup > code
diff doc/tracker_templates.txt @ 5762:b76be13e027e
issue2551029: Jinja2 template install error.
Issue where template's config.ini not getting updated.
Change do_install in admin.py to load config_ini.ini from template
before writing tracker's config.ini. This generates an updated
config file for the user on install preserving values required tomake
tracker work.
Added config_ini.ini files to jinja2 and responsive templates to set
required values (template_engine and static_files; static_files
resp.).
Documented new file in doc/tracker_templates.txt and added tests for
new admin.py code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 04 Jun 2019 18:42:05 -0400 |
| parents | 33a1f03b9de0 |
| children | 3f3ce3004013 |
line wrap: on
line diff
--- a/doc/tracker_templates.txt Sun Jun 02 17:15:23 2019 -0400 +++ b/doc/tracker_templates.txt Tue Jun 04 18:42:05 2019 -0400 @@ -25,6 +25,12 @@ - modules ``schema.py`` and ``initial_data.py`` - directories ``html``, ``detectors`` and ``extensions`` (with appropriate contents) +- optional ``config_ini.ini`` file. It is structured like a tracker's + ``config.ini`` but contains only headers (e.g. ``[main]``) and + *required* parameters that are different from defaults: + e.g. ``template_engine = jinja2`` and ``static_files = + static``. These settings override the default values saved to the + tracker's ``config.ini``. - template "marker" file ``TEMPLATE-INFO.txt``, which contains the name of the template, a description of the template and its intended audience.
