Skip to content
Snippets Groups Projects
Commit 6463cf6c authored by Jan Mach's avatar Jan Mach
Browse files

Added example usage of EXPLAIN_TEMPLATE_LOADING configuration variable.

This Flask configuration is usefull for debugging Jinja template loading precedence.
parent b5bf0807
No related branches found
No related tags found
No related merge requests found
# Force enable the debug mode. # Force enable the debug mode.
#DEBUG = True #DEBUG = True
# Debug template file loading precedence.
#EXPLAIN_TEMPLATE_LOADING = True
# Move the application from webserver root to different location. # Move the application from webserver root to different location.
#APPLICATION_ROOT = '/mentat' #APPLICATION_ROOT = '/mentat'
......
...@@ -156,6 +156,10 @@ class DevelopmentConfig(Config): # pylint: disable=locally-disabled,too-few-pub ...@@ -156,6 +156,10 @@ class DevelopmentConfig(Config): # pylint: disable=locally-disabled,too-few-pub
DEBUG = True DEBUG = True
"""Overwrite default :py:const:`vial.config.Config.DEBUG`.""" """Overwrite default :py:const:`vial.config.Config.DEBUG`."""
EXPLAIN_TEMPLATE_LOADING = True
"""Debug template file loading precedence."""
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# Custom application configurations. # Custom application configurations.
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment