Anonymous avatar Anonymous committed 1304d88

adding README

Comments (0)

Files changed (2)

Empty file removed.

+# Django SSL Redirect#
+
+Django SSL Redirect is a middleware that ensures secured URLs and only secured URLs are accessed securely over HTTPS.
+
+##Installation##
+To install:
+
+`pip install hg+https://bitbucket.org/nextscreenlabs/django-ssl-redirect`
+
+## Securing Views ##
+To secure a view simply add 'SSL': True the views kwargs
+
+```python
+urlpatterns = patterns('my_app.views',
+    url(r'^secure/path/$','secure_view',{'SSL':True}),
+)
+```
+
+##Settings##
+Use secure redirects.
+
+`USE_SSL (default True)`
+
+Name of the view kwarg.
+
+`SLL (default 'SSL')`
+
+Port number of the SLL connection. If not None it is appended after the host.
+
+`SSLPORT (default None)`
+
+A list of secure paths.
+
+`HTTPS_PATHS (default [])`
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.