Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

django-auth-anywhere is a Django application which enables non-DRF views to authenticate using DRF backends.

Project Description

django-auth-anywhere is a Django application which enables using `Django Rest Framework`_ authentication backends throughout your Django application. This can be useful to secure non-API endpoints behind token authentication using `JSON web tokens`_.

.. _Django Rest Framework:

.. _JSON web tokens:


This has only been tested with:

* Python: 3.5
* Django: 1.8, 1.9, 1.10


Install from **pip**:

.. code-block:: sh

pip install django-auth-anywhere

and then add it to your installed apps:

.. code-block:: python


You will also need to add a middleware class to listen in on responses:

.. code-block:: python



``django-auth-anywhere`` was created by Morgante Pell (`@morgante
<>`_), with inspiration from Anthony Lobko (`@amelius15



* New release notes go here.

0.0.2 (2016-09-30)

* Remove references to internal project code.

0.0.1 (2016-09-30)

* Initial release

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_auth_anywhere-0.0.2-py2.py3-none-any.whl (5.0 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 30, 2016
django-auth-anywhere-0.0.2.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Sep 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting