djblets.siteconfig.views¶
Views for working with site configurations.
- site_settings(request, form_class=<class 'djblets.siteconfig.forms.SiteSettingsForm'>, template_name='siteconfig/settings.html', extra_context={})[source]¶
A view for customizing the site configuration’s settings.
This will make use of the provided form class and template, handling loading and saving any site configuration settings.
- Parameters
request (django.http.HttpRequest) – The HTTP request for the view.
form_class (type, optional) – The form class to use for editing the settings. This should be either
SiteSettingsForm
or a subclass of it.template_name (unicode, optional) – The template to render for the view.
extra_context (dict, optional) – Extra context variables to pass to the template.
- Returns
The response containing the page.
- Return type