Middleware

Middleware manipulates the request before it is passed to the view and the response before it is returned to the client.

To learn more about Django’s middleware implementation and how the class has been implemented, have a look at the middleware docs.

class fleetingform.middleware.FleetingNamespaceMiddleware(get_response)[source]

Bases: object

Manage the FleetingNamespace in the request.

Implements the Django Middleware pattern. It should be in the middleware stack somewhere after the AuthenticationMiddleware.

Adds the .namespace property to the request object. Set to None if no token in header.