> Read the latest version of this page
Edit me on GitHub

pyramid.settings

get_settings()[source]

Return a deployment settings object for the current application. The object is a dictionary-like object that contains key/value pairs based on the dictionary passed as the settings argument to the pyramid.config.Configurator constructor or the pyramid.router.make_app() API.

Warning

This method is deprecated as of Pyramid 1.0. Use pyramid.threadlocals.get_current_registry().settings instead or use the settings attribute of the registry available from the request (request.registry.settings).

asbool(s)[source]

Return the boolean value True if the case-lowered value of string input s is any of t, true, y, on, or 1, otherwise return the boolean value False. If s is the value None, return False. If s is already one of the boolean values True or False, return it.

Previous topic

pyramid.security

Next topic

pyramid.testing