Jump to >

djblets.siteconfig.middleware

Middleware for managing site configurations.

class SettingsMiddleware[source]

Bases: object

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)[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.