Skip to main content
Build Status Test Coverage Latest Version Wheel Status License

Make the Django admin only available via https. For Django versions >= 1.7.

Installation

You can install django-ssl-admin using pip:

$ pip install django-ssl-admin

Usage

To enable django-ssl-admin 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')

License

Copyright © 2015 Matt Deacalion Stevens, released under The MIT License.

Release files for django-ssl-admin 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-ssl-admin 1.1.4
File Size Uploaded
django-ssl-admin-1.1.4.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-ssl-admin 1.1.4
File Interpreter ABI Platform
django_ssl_admin-1.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size:7.8 kB

Release files / django-ssl-admin-1.1.4.tar.gz

Download URL django-ssl-admin-1.1.4.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eddb90418b2f4648029e1e68244a1cca59edbddc82e50601fbb4da71029f8626
BLAKE2b-256 checksum
How to use checksums
ce5c4a001ea3769ac20ad83b0638513c2ece2bd3b3490bf4134b25bcac96fc49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_ssl_admin-1.1.4-py2.py3-none-any.whl

Download URL django_ssl_admin-1.1.4-py2.py3-none-any.whl
Size 4.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ea3402f5617c6004c58b78ba93d5de3f162e98868e66e7d79359d6e3de67c3c9
BLAKE2b-256 checksum
How to use checksums
2c0fb514a5408a49f4dfb329f30fc011033e3a533eedba0e0ea1e9c5f8d90b86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page