Changes between Version 29 and Version 30 of ContributedMiddleware


Ignore:
Timestamp:
01/22/07 01:23:03 (8 years ago)
Author:
sjzabel@…
Comment:

Added an additional SSL middleware. I am not able to delete my first upload (contained a text error) so if it is possible can somebody delete it (or tell me how to do it :P)

Legend:

Unmodified
Added
Removed
Modified
  • ContributedMiddleware

    v29 v30  
    7676Introduces a new setting, HTTPS_PATHS, which is a tuple of paths that should be treated as HTTPS-only. The middleware will redirect HTTP requests for paths starting with these values to their HTTPS counterpart. On the other hand, all HTTPS requests with paths starting with strings '''not''' in that tuple will be redirected back to their HTTP counterpart.
    7777
     78=== [http://code.djangoproject.com/attachment/wiki/ContributedMiddleware/SSLMiddleware.2.py SSL Middleware] by Stephen Zabel ===
     79
     80Addresses the same SSL issue as (and is inspired by) Antonio's SSL Middleware. However, this package is invoked through adding a 'SSL':True to the  view_kwargs in a urls.py file. This approach allows you to secure admin and generic views without needing to wrap or modify them, adheres to the DRY principal and allows you to control the security at the application level rather than at project level.
     81
     82Usage
     83{{{
     84urlpatterns = patterns('some_site.some_app.views',
     85    (r'^test/secure/$','test_secure',{'SSL':True}),
     86     )
     87}}}
     88
    7889=== [http://code.ibofobi.dk/public/wiki/XHTMLAsHTMLMiddleware XHTMLAsHTMLMiddleware] by Sune Kirkeby ===
    7990
Back to Top