Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.

djblets.siteconfig.views

Views for working with site configurations.

site_settings(request, *args, **kwargs)[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:

django.http.HttpResponse