Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5760:f0ca4daf6a18 | 5762:b76be13e027e |
|---|---|
| 23 Templates contain: | 23 Templates contain: |
| 24 | 24 |
| 25 - modules ``schema.py`` and ``initial_data.py`` | 25 - modules ``schema.py`` and ``initial_data.py`` |
| 26 - directories ``html``, ``detectors`` and ``extensions`` | 26 - directories ``html``, ``detectors`` and ``extensions`` |
| 27 (with appropriate contents) | 27 (with appropriate contents) |
| 28 - optional ``config_ini.ini`` file. It is structured like a tracker's | |
| 29 ``config.ini`` but contains only headers (e.g. ``[main]``) and | |
| 30 *required* parameters that are different from defaults: | |
| 31 e.g. ``template_engine = jinja2`` and ``static_files = | |
| 32 static``. These settings override the default values saved to the | |
| 33 tracker's ``config.ini``. | |
| 28 - template "marker" file ``TEMPLATE-INFO.txt``, which contains | 34 - template "marker" file ``TEMPLATE-INFO.txt``, which contains |
| 29 the name of the template, a description of the template | 35 the name of the template, a description of the template |
| 30 and its intended audience. | 36 and its intended audience. |
| 31 | 37 |
| 32 An example TEMPLATE-INFO.txt:: | 38 An example TEMPLATE-INFO.txt:: |
