Skip to main content

Basic auth utilities for Django.

Project description

Basic auth utilities for Django.


Tested under…

  • Python

    • 3.4

  • Django

    • 1.7

    • 1.8


pip install django-basicauth


from basicauth.decorators import basic_auth_required

def myview(request):

or by a middleware.



  • BASICAUTH_USERS (required): Dictionary including keys as username and values as passwords.

  • BASICAUTH_REALM: realm string, default is “Secure resource”.


0.2 (2016-03-31)

0.1 (2015-04-20)

  • Initial

Project details

Download files

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

Source Distribution

django-basicauth-0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page