djblets.siteconfig.middleware¶
Middleware for managing site configurations.
- class SettingsMiddleware(get_response=None)[source]¶
Bases:
MiddlewareMixin
Middleware for performing expiration checks for site configuration.
This will check the site configuration before each request is handled in order to see if it has expired, ensuring that the the request is able to work with the most up-to-date settings from the database.
- process_request(request: HttpRequest) None [source]¶
Process the HTTP request.
This will perform an expiration check for the site configurations.
- Parameters:
request (
django.http.HttpRequest
) – The HTTP request being processed.
- __annotations__ = {}¶