Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Extra security for your sensitive pages

Project Description

.. image::

.. image::


| Sudo mode is an extra layer of security for your most sensitive pages.
This is an implementation of GitHub's `Sudo Mode
<>`_ for `Django

What is this for?
``django-sudo`` provides an extra layer of security for after a user is already logged in. Views can
be decorated with ``@sudo_required``, and then a user
must re-enter their password to view that page. After verifying their password, that user has
elevated permissions for the duration of ``SUDO_COOKIE_AGE``. This duration is independent of the
normal session duration allowing short elevated permission durations, but retain long user sessions.


.. code-block:: console

$ pip install django-sudo

* Django 1.4-1.8
* Python 2.6-3.5
* pypy

* `Documentation <>`_
* `Security <>`_
* `Changelog <>`_
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_sudo-1.2.0-py2.py3-none-any.whl (10.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 30, 2015
django-sudo-1.2.0.tar.gz (7.4 kB) Copy SHA256 Checksum SHA256 Source Dec 30, 2015

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