Jump to >


Middleware for managing site configurations.

class SettingsMiddleware(get_response=None)[source]

Bases: django.utils.deprecation.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: django.http.request.HttpRequest) None[source]

Process the HTTP request.

This will perform an expiration check for the site configurations.


request (django.http.HttpRequest) – The HTTP request being processed.

__annotations__ = {}