Skip to main content

Password-protected URLs for Django

Project description

Easy password-protected URLs for your Django website.


  1. Install via pip: pip install django-pwdprotect.
  2. Add pwdprotect your INSTALLED_APPS.
  3. Add pwdprotect.middleware.PasswordProtectMiddleware to your MIDDLEWARE settings.
  4. Run migrations python migrate pwdprotect.


After installation you can add protected URLs via the Django admin. Only local URLs starting with a / are allowed (do not include the site domain). The middleware will then check each request and prompt the user to log in if required.


Review contribution guidelines at

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-pwdprotect, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_pwdprotect-1.0.1-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-pwdprotect-1.0.1.tar.gz (4.6 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 Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page