Changes between Version 21 and Version 22 of ContributedMiddleware


Ignore:
Timestamp:
08/12/2006 10:27:35 PM (9 years ago)
Author:
Gary Wilson <gary.wilson@…>
Comment:

alphabetized

Legend:

Unmodified
Added
Removed
Modified
  • ContributedMiddleware

    v21 v22  
    22
    33See [http://www.djangoproject.com/documentation/middleware/ the middleware documentation] on how to enable and write your own middleware. This page collects middleware written by people in the community.
    4 
    5 === [http://code.ibofobi.dk/public/wiki/XHTMLAsHTMLMiddleware XHTMLAsHTMLMiddleware] by Sune Kirkeby ===
    6 
    7 Sends application/xhtml+xml header to browsers that understand it.
    8 
    9 === [http://code.ibofobi.dk/public/file/trunk/ibofobi/src/ibofobi/middleware/template_dirs_hacker.py?rev=1519 TemplateDirsHacker] by Sune Kirkeby ===
    10 
    11 Munges {{{settings.TEMPLATE_DIRS}}} for each request. Useful if you want the admin-pages on the same virtual-host
    12 as your main site, and you have template-names which clash with the admin-templates.
    13 (This is no longer needed, since the admin-templates now live in a namespace of their own).
    14 
    15 === [http://lukeplant.me.uk/resources/csrfmiddleware/index.html CsrfMiddleware] by Luke Plant ===
    16 
    17 Plug-in protection against Cross Site Request Forgery attacks.   ''Note'': CsrfMiddleware was added to trunk in [2868] (see #510) and now has [http://www.djangoproject.com/documentation/csrf/ official documentation].
    18 
    19 === [http://pythonanddjango.blogsome.com/2006/03/29/closed-site-middleware/ ClosedSiteMiddleware] by rezzrovv ===
    20 
    21 Closes a site to only authenticated users.
    22 
    23 === [http://www.rhonabwy.com/wp/2006/08/01/blocking-a-site-in-django/ BlockingMiddleware] by Joe Heck ===
    24 
    25 Another take on blocking a site, developed to display a splash page and only provide access to those with a
    26 passcode, registered users or not (specifically for a beta - where we wanted to enable authenticated users)
    274
    285
     
    3310This 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.
    3411
    35 === [http://code.unicoders.org/django/trunk/middleware/urlmiddleware.py URL Middleware] by Stefano J. Attardi ===
    3612
    37 Cleans up urls by adding/removing trailing slashes, adding/removing the www. prefix, and allowing the language to be set from the url.
     13=== [http://www.rhonabwy.com/wp/2006/08/01/blocking-a-site-in-django/ BlockingMiddleware] by Joe Heck ===
    3814
    39 If APPEND_SLASH is set to False, trailing slashes are removed from the urls, except for urls which have an explicit trailing slash in urls.py, in which case a trailing slash is added.
     15Another take on blocking a site, developed to display a splash page and only provide access to those with a
     16passcode, registered users or not (specifically for a beta - where we wanted to enable authenticated users)
    4017
    41 If REMOVE_WWW is set to True, the www. prefix is removed.
    4218
    43 Finally, ?lang=xx can be appended to any url to override the default language setting. This override is remembered for the following requests. For example, /article?lang=it would show the article in Italian regardless of brower settings or cookies, and any following request to the site would be shown in Italian by default.
     19=== [http://pythonanddjango.blogsome.com/2006/03/29/closed-site-middleware/ ClosedSiteMiddleware] by rezzrovv ===
     20
     21Closes a site to only authenticated users.
     22
     23
     24=== [http://lukeplant.me.uk/resources/csrfmiddleware/index.html CsrfMiddleware] by Luke Plant ===
     25
     26Plug-in protection against Cross Site Request Forgery attacks.   ''Note'': CsrfMiddleware was added to trunk in [2868] (see #510) and now has [http://www.djangoproject.com/documentation/csrf/ official documentation].
     27
    4428
    4529=== [http://code.djangoproject.com/attachment/wiki/ContributedMiddleware/StripWhitespaceMiddleware.py Strip Whitespace Middleware] by Doug Van Horn ===
     
    6145
    6246Unfortunately, I can't seem to edit or remove the attached file, otherwise I might've just done that and slinked away in shame.  :-)
     47
     48
     49=== [http://code.ibofobi.dk/public/file/trunk/ibofobi/src/ibofobi/middleware/template_dirs_hacker.py?rev=1519 TemplateDirsHacker] by Sune Kirkeby ===
     50
     51Munges {{{settings.TEMPLATE_DIRS}}} for each request. Useful if you want the admin-pages on the same virtual-host
     52as your main site, and you have template-names which clash with the admin-templates.
     53(This is no longer needed, since the admin-templates now live in a namespace of their own).
     54
     55
     56=== [http://code.unicoders.org/django/trunk/middleware/urlmiddleware.py URL Middleware] by Stefano J. Attardi ===
     57
     58Cleans up urls by adding/removing trailing slashes, adding/removing the www. prefix, and allowing the language to be set from the url.
     59
     60If APPEND_SLASH is set to False, trailing slashes are removed from the urls, except for urls which have an explicit trailing slash in urls.py, in which case a trailing slash is added.
     61
     62If REMOVE_WWW is set to True, the www. prefix is removed.
     63
     64Finally, ?lang=xx can be appended to any url to override the default language setting. This override is remembered for the following requests. For example, /article?lang=it would show the article in Italian regardless of brower settings or cookies, and any following request to the site would be shown in Italian by default.
     65
     66
     67=== [http://code.ibofobi.dk/public/wiki/XHTMLAsHTMLMiddleware XHTMLAsHTMLMiddleware] by Sune Kirkeby ===
     68
     69Sends application/xhtml+xml header to browsers that understand it.
Back to Top