app.middleware

drop_accept_langauge

drop_accept_langauge(get_response)

Define the middleware to remove accept-language headers from requests.

This middleware is essentially a hack to allow us to continue to use the standard Django LocaleMiddleware without modification, but simply disable the autodetection aspect based on the Accept-Language header.

bleach_requests

bleach_requests(get_response)

This middleware uses the bleach library to sanitize incoming requests to prevent XSS and injection attacks