diff options
| author | Karl O. Pinc <kop@meme.com> | 2018-10-30 12:56:44 -0500 |
|---|---|---|
| committer | Karl O. Pinc <kop@meme.com> | 2018-11-18 18:45:05 -0600 |
| commit | 9ef620f65721aa8474e8bde2e6b13673ed980f73 (patch) | |
| tree | 42870d7a14e378f09ff0bf4ef85a49a8a3fdb3ca /docs | |
| parent | 87c8da5865c001ff0ca9ef2c923e26e323ccfcde (diff) | |
| download | pyramid-9ef620f65721aa8474e8bde2e6b13673ed980f73.tar.gz pyramid-9ef620f65721aa8474e8bde2e6b13673ed980f73.tar.bz2 pyramid-9ef620f65721aa8474e8bde2e6b13673ed980f73.zip | |
mmerickel noted that add-ons may not get their settings from .ini files
Also, remove detail about Configurator returning a configuration.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/project.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index 218545193..11302fcf9 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -867,12 +867,12 @@ also informs Python that the directory which contains it is a *package*. Within ``main`` further application configuration is performed. Line 7 opens a context manager with an instance of a :term:`Configurator`. - This applies lines in the ``.ini`` file to ``config``, the configuration returned by :term:`Configurator`. + This applies lines in the ``.ini`` file. Only those lines in :ref:`[app:main] <app_main>` which are understood by :app:`Pyramid` are applied, such as ``pyramid.includes = pyramid_debugtoolbar``. - Line 8 adds support for Jinja2 templating bindings, allowing us to specify renderers with the ``.jinja2`` extension. - The expectation is that the add-on applies what is relevant in the ``.ini`` file at this point. - Consult your add-on's documentation. + Line 8 adds support for Jinja2 templating bindings. + Settings are applied to the configuration allowing us to specify renderers with the ``.jinja2`` extension. + These settings are add-on dependent and may come from the ``.ini`` file or from elsewhere. Line 9 includes the ``routes.py`` module. |
