Skip to main content

Password-protected URLs for Django

Project description

Easy password-protected URLs for your Django website.

Install

  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 manage.py migrate pwdprotect.

Usage

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.

Contributing

Review contribution guidelines at CONTRIBUTING.md.

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page