Skip to main content
django-sudo
===========

.. image:: https://travis-ci.org/mattrobenolt/django-sudo.svg?branch=master
:target: https://travis-ci.org/mattrobenolt/django-sudo

.. image:: https://coveralls.io/repos/mattrobenolt/django-sudo/badge.png?branch=master
:target: https://coveralls.io/r/mattrobenolt/django-sudo?branch=master

..

| Sudo mode is an extra layer of security for your most sensitive pages.
This is an implementation of GitHub's `Sudo Mode
<https://github.com/blog/1513-introducing-github-sudo-mode>`_ for `Django
<https://www.djangoproject.com/>`_.

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.

Installation
~~~~~~~~~~~~

.. code-block:: console

$ pip install django-sudo

Compatibility
~~~~~~~~~~~~~
* Django 1.4-1.9
* Python 2.6-3.5
* pypy

Resources
~~~~~~~~~
* `Documentation <https://django-sudo.readthedocs.org/>`_
* `Security <https://django-sudo.readthedocs.org/en/latest/security/index.html>`_
* `Changelog <https://django-sudo.readthedocs.org/en/latest/changelog/index.html>`_

Download files

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

Source Distribution

django-sudo-2.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sudo-2.0.1-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-sudo-2.0.1.tar.gz.

File metadata

  • Download URL: django-sudo-2.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-sudo-2.0.1.tar.gz
Algorithm Hash digest
SHA256 0bef9229a5818e014ea35c164860e3b9c60af0a4931c0c6d842b30ffd83503a7
MD5 5a808dfa47d85e7aada2d46f83865856
BLAKE2b-256 14d47b30cd7f465fe6987f69a059adb3d9fb7047f8fb02f16dbed67c8f6c57e4

See more details on using hashes here.

File details

Details for the file django_sudo-2.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_sudo-2.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c129c883999c141cd25b58f712ae3acdc6bb00b46d1e7a502ec0c363cd03406e
MD5 8468df4fafa0572e63a0411bb85c0444
BLAKE2b-256 4c36e16e472a36631b0705beb73547f46545ba6d48a31cf74b0ded123c1eee83

See more details on using hashes here.

Release history Release notifications | RSS feed

3.1.0

2 files

3.0.0

2 files

2.1.0

2 files

This release

2.0.1 This release

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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