From a1365e6f0da69e1b4e3f9cea11222849e5ca810a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 11 Nov 2010 16:22:44 -0500 Subject: document the request.settings attribute as well as we can --- docs/narr/startup.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/narr') diff --git a/docs/narr/startup.rst b/docs/narr/startup.rst index 9d9baf92d..c57525f4c 100644 --- a/docs/narr/startup.rst +++ b/docs/narr/startup.rst @@ -138,7 +138,18 @@ press ``return`` after running ``paster serve development.ini``. the application, and the application is running, waiting to receive requests. +.. _deployment_settings: +Deployment Settings +------------------- + +Note that an augmented version of the values passed as ``**settings`` to the +:class:`pyramid.configuration.Configurator` constructor will be available in +:app:`Pyramid` :term:`view callable` code as ``request.registry.settings``. +You can create objects you wish to access later from view code, and put them +into the dictionary you pass to the configurator as ``settings``. They will +then be present in the ``request.registry.settings`` dictionary at +application runtime. -- cgit v1.2.3