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.

Source Distribution

django-pwdprotect-1.0.1.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

django_pwdprotect-1.0.1-py2.py3-none-any.whl (6.2 kB view hashes)

Uploaded py2 py3

Supported by

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