django-ssl-admin
Make the Django admin only available via https.
Installation
You can install django-ssl-admin using pip.
$ pip install django-ssl-admin
And to enable you need to add it to MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
...
'ssladmin.middleware.SSLAdmin',
....
)
If your admin path is not /admin/ you can change the ADMIN_PATH setting like so:
ADMIN_PATH = '^/staff/'
If you have a reverse proxy set up remember to let Django know how it can detect a secure connection, e.g.:
SECURE_PROXY_SSL_HEADER = ('HTTP_X_SCHEME', 'https')
Release files for django-ssl-admin 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-ssl-admin-1.0.tar.gz | 3.4 kB | Details |
Release files / django-ssl-admin-1.0.tar.gz
| Download URL | django-ssl-admin-1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
552fa46c8593a263d04440ee3a59b058c9aaf5e0403be5ed4e36f7342df62edf
|
|
BLAKE2b-256 checksum How to use checksums |
c553b7ba315598fbc579c5aed6b80f1048c51be7174f7b56cd3d0d5c0702ba0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |