Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pyramid.pdf
Скачиваний:
11
Добавлен:
24.03.2015
Размер:
3.82 Mб
Скачать

17. ENVIRONMENT VARIABLES AND .INI FILE SETTINGS

17.1 Reloading Templates

When this value is true, templates are automatically reloaded whenever they are modified without restarting the application, so you can see changes to templates take effect immediately during development. This flag is meaningful to Chameleon and Mako templates, as well as most third-party template rendering extensions.

Environment Variable Name

Config File Setting Name

PYRAMID_RELOAD_TEMPLATES

pyramid.reload_templates or

 

 

reload_templates

 

 

17.2 Reloading Assets

Don’t cache any asset file data when this value is true. See also Overriding Assets.

Environment Variable Name

Config File Setting Name

PYRAMID_RELOAD_ASSETS

pyramid.reload_assets or reload_assets

latex-note.png

For backwards compatibility purposes, aliases can be used for configurating asset reloading: PYRAMID_RELOAD_RESOURCES (envvar) and pyramid.reload_resources

(config file).

17.3 Debugging Authorization

Print view authorization failure and success information to stderr when this value is true. See also Debugging View Authorization Failures.

Environment Variable Name

Config File Setting Name

PYRAMID_DEBUG_AUTHORIZATIONpyramid.debug_authorization or

 

debug_authorization

 

 

184

17.4. DEBUGGING NOT FOUND ERRORS

17.4 Debugging Not Found Errors

Print view-related NotFound debug messages to stderr when this value is true. See also NotFound Errors.

Environment Variable Name

Config File Setting Name

PYRAMID_DEBUG_NOTFOUND

pyramid.debug_notfound or debug_notfound

17.5 Debugging Route Matching

Print debugging messages related to url dispatch route matching when this value is true. See also Debugging Route Matching.

Environment Variable Name

Config File Setting Name

PYRAMID_DEBUG_ROUTEMATCH

pyramid.debug_routematch or debug_routematch

17.6 Preventing HTTP Caching

Prevent the http_cache view configuration argument from having any effect globally in this process when this value is true. No http caching-related response headers will be set by the Pyramid http_cache view configuration feature when this is true. See also Influencing HTTP Caching.

Environment Variable Name

Config File Setting Name

PYRAMID_PREVENT_HTTP_

CACHEpyramid.prevent_http_cache or

 

prevent_http_cache

17.7 Debugging All

Turns on all debug* settings.

Environment Variable Name

Config File Setting Name

PYRAMID_DEBUG_ALL

pyramid.debug_all or debug_all

185

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]