From 0c0c59f4a023db1c5cb8633c68291f290c416627 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 4 Nov 2010 12:28:56 -0400 Subject: we added more keys to the default paster template ini file app section, update the startup chapter to show them --- docs/narr/startup.rst | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/narr/startup.rst b/docs/narr/startup.rst index 506504454..53cbcd95c 100644 --- a/docs/narr/startup.rst +++ b/docs/narr/startup.rst @@ -85,12 +85,12 @@ press ``return`` after running ``paster serve development.ini``. .. literalinclude:: MyProject/development.ini :linenos: - In this case, the ``myproject.run:app`` function referred to by the - entry point URI ``egg:MyProject#app`` (see :ref:`MyProject_ini` for - more information about entry point URIs, and how they relate to - callables), will receive the key/value pairs - ``{'reload_templates':'true', 'debug_authorization':'false', - 'debug_notfound':'false'}``. + In this case, the ``myproject.run:app`` function referred to by the entry + point URI ``egg:MyProject#app`` (see :ref:`MyProject_ini` for more + information about entry point URIs, and how they relate to callables), + will receive the key/value pairs ``{'reload_templates':'true', + 'debug_authorization':'false', 'debug_notfound':'false', + 'debug_templates':'true', 'default_locale_name':'en'}``. #. The ``app`` function first constructs a :class:`pyramid.configuration.Configurator` instance, passing @@ -102,11 +102,12 @@ press ``return`` after running ``paster serve development.ini``. request to retrieve the application root. It is not called during startup, only when a request is handled. - The ``settings`` dictionary contains all the options in the - ``[app:main]`` section of our .ini file except the "use" option - (which is internal to paste). In this case, ``**settings`` will be - something like ``{'reload_templates':'true', - 'debug_authorization':'false', 'debug_notfound':'false'}``. + The ``settings`` dictionary contains all the options in the ``[app:main]`` + section of our .ini file except the "use" option (which is internal to + paste). In this case, ``**settings`` will be something like + ``{'reload_templates':'true', 'debug_authorization':'false', + 'debug_notfound':'false', 'debug_templates':'true', + 'default_locale_name':'en'}``. #. The ``app`` function then calls various methods on the an instance of the class :class:`pyramid.configuration.Configurator` method. The intent of -- cgit v1.2.3