Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (32 sloc) 1.06 KB

Welcome to django-sudo

django-sudo 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 :func:`@sudo_required <django_sudo.decorators.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

$ pip install django-sudo

Compatibility

  • Django 1.4-1.9
  • Python 2.6-3.5
  • pypy

Contents

.. toctree::
   :maxdepth: 2

   getting-started/index
   config/index
   usage/index
   contributing/index
   how/index
   security/index
   changelog/index