Templates¶
The templates are rendered using template engine Jinja2.
For each template the default context variables are :
debug: A boolean, his value comes fromsettings.DEBUG;SITE: A dict containing some variables from the settings;name: the value fromsettings.SITE_NAME;domain: the value fromsettings.SITE_DOMAIN;web_url: the value fromsettings.SITE_DOMAINprefixed byhttp://orhttps://depending setting value forHTTPS_ENABLED;
STATIC_URL: A string, containing the value fromsettings.STATIC_URL;OPTIMUS: Optimus version;_SETTINGS: A copy of settings. Only uppercase names are allowed, every other will be ignored. Think about to renamed modules you import in your settings to not be fully uppercase so they won’t be passed to context;
Read the Jinja2 documentation for more details on the available template markups.