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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file django-pwdprotect-1.0.1.tar.gz.

File metadata

  • Download URL: django-pwdprotect-1.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.14

File hashes

Hashes for django-pwdprotect-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0bc8cddbeaf8d917989041d5d407bfc4d9e0c4ff8062af12bbe50f4b19a7626e
MD5 f279c735dbecc548623bd151f2d2e474
BLAKE2b-256 0e7b045b399afd2a662729d17dc3edb5ab8af6cabd1afd5d9af60b6b0bced0e2

See more details on using hashes here.

File details

Details for the file django_pwdprotect-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_pwdprotect-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.14

File hashes

Hashes for django_pwdprotect-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 153cb8ae3c5200e39245f2936ed6a8517e496ad4ae256c3cf698d2d277a24a95
MD5 05c954dd0492afda4bd08d61c0043fc8
BLAKE2b-256 e2188b9d28323fb375b28ab314215ec9d61c1a76da73f27eb9426c9e12d255e5

See more details on using hashes here.

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