Added template_debug setting, closes #654

This commit is contained in:
Simon Willison 2019-12-22 16:04:45 +00:00
commit d54318fc7f
6 changed files with 61 additions and 23 deletions

View file

@ -126,6 +126,11 @@ CONFIG_OPTIONS = (
False,
"Force URLs in API output to always use https:// protocol",
),
ConfigOption(
"template_debug",
False,
"Allow display of template debug information with ?_context=1",
),
)
DEFAULT_CONFIG = {option.name: option.default for option in CONFIG_OPTIONS}