Skip to content

Middleware

Andy Byers edited this page Sep 12, 2017 · 1 revision

CronMiddleware

Location: cron.middleware

Purpose: Executes CronTask objects and deletes them.

SiteSettingsMiddleware

Location: core.middleware

Purpose: This middleware class sets a series of variables for templates and views to access inside the request object. Determines which Journal is active based on path or domain or fallsback to Press.

ThemeEngineMiddleware

Location: utils.template_override_middleware

Purpose: See Theme Middleware

MaintenanceModeMiddleware

Location: core.middleware

Purpose: Handles instances where Maintenance mode is enabled.

CounterCookieMiddleware

Location: core.middleware

Purpose: Checks if a given session has a counter_tracking variable and assigns one if not.

PressMiddleware

Location: core.middleware

Purpose: Locks some pages out for Press only.

GlobalRequestMiddleware

Location: core.middleware

Purpose: Makes the request object available globally in a thread safe manner.