Metadata-Version: 2.0
Name: django-ssl-admin
Version: 1.1.4
Summary: Django middleware to make the admin https only.
Home-page: http://dirtymonkey.co.uk/django-ssl-admin
Author: Matt Deacalion Stevens
Author-email: matt@dirtymonkey.co.uk
License: MIT
Keywords: django https secure admin ssl
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Requires-Dist: Django (>=1.6.5)

================
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


