djblets.siteconfig.context_processors¶
Template context processors for SiteConfiguration information.
- siteconfig(request)¶
Return context variables for accessing site configuration data.
This will provide templates with a
siteconfigvariable, representing the currentSiteConfigurationfor the installation, andsiteconfig_settings, representing all settings on the current configuration.siteconfig_settingsis preferred over accessingsiteconfig.settings, as it will properly handle returning default values.- Parameters:
request (
django.http.HttpRequest) – The current HTTP request.- Returns:
A dictionary with
siteconfigandsiteconfig_settingskeys.- Return type:
- settings_vars(request)¶
Return context variables for accessing Django settings.
This will provide templates with a
settingsvariable, which represents the Django settings object.- Parameters:
request (
django.http.HttpRequest) – The current HTTP request.- Returns:
A dictionary with a
settingskey.- Return type: