Jason Christa  committed a283a82

update README

  • Participants
  • Parent commits 4c791d0
  • Branches default

Comments (0)

Files changed (1)

 Run `pip install django-ssl-redirect`
+Add `ssl_redirect.middleware.SSLRedirectMiddleware` to the top of your MIDDLEWARE_CLASSES setting:
+    'ssl_redirect.middleware.SSLRedirectMiddleware',
+	...
 Securing Views
 To secure a view simply add `'SSL': True` the views kwargs
+You can always ensure a view is not served over SSL with `'SSL': True`
+urlpatterns = patterns('my_app.views',
+    url(r'^unsecure/path/$', 'secure_view', {'SSL': False}),
-Use secure redirects.
+`SSL_ON (default True)`
+Use SSL redirects. This setting overrides all other settings.
-`USE_SSL (default True)`
+`SSL_ALWAYS (default False)`
+Use SSL throughout the entire site.
-Name of the view kwarg.
-`SSL (default 'SSL')`
-Port number of the SSL connection. If not None it is appended after the host.
-`SSLPORT (default None)`
+`HTTPS_PATHS (default [])`
 A list of secure paths.
-`HTTPS_PATHS (default [])`
+`SSL_PORT (default None)`
+Port number of the SSL connection. If the value is not None it will be appended after the host.