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 Python 2 Python 3

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