djblets.siteconfig.views¶
Views for working with site configurations.
- site_settings(request: HttpRequest, form_class: type[SiteSettingsForm] = <class 'djblets.siteconfig.forms.SiteSettingsForm'>, template_name: str = 'siteconfig/settings.html', extra_context: dict[str, Any] = {}) HttpResponse[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 eitherSiteSettingsFormor a subclass of it.template_name (
str, 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: