Jump to >


class ExtensionsMiddleware(*args, **kwargs)[source]

Bases: object

Middleware to manage extension lifecycles and data.

__init__(*args, **kwargs)[source]
process_view(request, view, args, kwargs)[source]
class ExtensionsMiddlewareRunner[source]

Bases: object

Middleware to execute middleware from extensions.

The process_*() methods iterate over all extensions’ middleware, calling the given method if it exists. The semantics of how Django executes each method are preserved.

This middleware should be loaded after the main extension middleware (djblets.extensions.middleware.ExtensionsMiddleware). It’s probably a good idea to have it be at the very end so that everything else in the core that needs to be initialized is done before any extension’s middleware is run.

process_view(request, view_func, view_args, view_kwargs)[source]
process_template_response(request, response)[source]
process_response(request, response)[source]
process_exception(request, exception)[source]