Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Puts your staging site behind a basic auth layer.

Project description

Latest PyPI version Latest Travis CI build status

A very basic Basic Auth middleware that uses a username/password defined in your environment variable or to protect whole of your site. Does not use Django auth.

Handy for quickly securing an entire site during development, for example.

Note: Environment variables is preferred over


# In


    # all other middleware here

# Optionally, set it here if not setting as environment variable
# Requires both variable to be set, else site won't be protected.


pip install django-auth-wall


Please make sure that you use SSL/TLS (HTTPS) to encrypt the connection between the client and the server, when using basic access authentication. In basic access authentication username and password are sent in cleartext, and if SSL/TLS is not used, the credentials could be easily intercepted.


  • Django 1.5+




django-auth-wall was written by Saurabh Kumar.

Project details

Download files

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

Files for django-auth-wall, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_auth_wall-0.2.0-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-auth-wall-0.2.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page