Version 14 (modified by jon1012, 10 years ago) (diff)

added my advanced locale from url middleware

Contributed middleware

See the middleware documentation on how to enable and write your own middleware. This page collects middleware written by people in the community.

XHTMLAsHTMLMiddleware by Sune Kirkeby

Sends application/xhtml+xml header to browsers that understand it.

TemplateDirsHacker by Sune Kirkeby

Munges settings.TEMPLATE_DIRS for each request. Useful if you want the admin-pages on the same virtual-host as your main site, and you have template-names which clash with the admin-templates. (This is no longer needed, since the admin-templates now live in a namespace of their own).

CsrfMiddleware by Luke Plant

Plug-in protection against Cross Site Request Forgery attacks. Note: CsrfMiddleware was added to trunk in [2868] (see #510) and now has official documentation.

ClosedSiteMiddleware by rezzrovv

Closes a site to only authenticated users.

Advanced Locale from URL middleware by Jonathan Schemoul

Replace the standard locale middleware with this one (or just use the two at the same time) to be able to set the language from the url. For example /fr/article/... shows you the article in French, and /en/article/... shows it in English. This version of the Locale from URL Middleware also sets a cookie and a request var whenever you go to a webpage that has a language set in it's url, so that it serves you the correct version when you go to a page that doesn't have any language code in it's url.

Attachments (5)

Download all attachments as: .zip

Back to Top