Skip to main content

A middleware that secures URLS.

Project description

Django SSL Redirect
===================

Django SSL Redirect is a middleware that ensures secured URLs and only secured URLs are accessed securely over HTTPS.

Installation
------------

Run `pip install 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.

`SSL (default 'SSL')`

Port number of the SSL connection. If not None it is appended after the host.

`SSLPORT (default None)`

A list of secure paths.

`HTTPS_PATHS (default [])`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ssl-redirect-1.0.zip (7.0 kB view details)

Uploaded Source

File details

Details for the file django-ssl-redirect-1.0.zip.

File metadata

File hashes

Hashes for django-ssl-redirect-1.0.zip
Algorithm Hash digest
SHA256 863103e4082f40efb7e57b17724f2e24a5f510387b77a88a8729a1cfd1fb1bca
MD5 b91f6e9fce6f43b4da82b7a43c345ef7
BLAKE2b-256 16fa30aa31d08407ce7962b5759aa4e265a051c5819b1ead8e37ecaa2bf323fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page