You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

django-ssl-admin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-ssl-admin

Django middleware to make the admin https only.


Maintainers
1

Readme

================ django-ssl-admin

.. image:: https://travis-ci.org/Matt-Deacalion/django-ssl-admin.png?branch=master :target: https://travis-ci.org/Matt-Deacalion/django-ssl-admin :alt: Build Status .. image:: https://coveralls.io/repos/Matt-Deacalion/django-ssl-admin/badge.png?branch=master :target: https://coveralls.io/r/Matt-Deacalion/django-ssl-admin?branch=master :alt: Test Coverage .. image:: https://pypip.in/version/django-ssl-admin/badge.png :target: https://pypi.python.org/pypi/django-ssl-admin/ :alt: Latest Version .. image:: https://pypip.in/wheel/django-ssl-admin/badge.png?new :target: https://pypi.python.org/pypi/django-ssl-admin/ :alt: Wheel Status .. image:: https://pypip.in/license/django-ssl-admin/badge.png :target: https://pypi.python.org/pypi/django-ssl-admin/ :alt: 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:

.. code-block:: python

MIDDLEWARE_CLASSES = (
    ...
    'ssladmin.middleware.SSLAdmin',
    ....
)

If your admin path is not /admin/ you can change the ADMIN_PATH setting like so:

.. code-block:: python

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.:

.. code-block:: python

SECURE_PROXY_SSL_HEADER = ('HTTP_X_SCHEME', 'https')

License

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

.. _Matt Deacalion Stevens: http://dirtymonkey.co.uk .. _MIT License: http://deacalion.mit-license.org

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc