Password-protected URLs for Django
Project description
Easy password-protected URLs for your Django website.
Install
- Install via pip: pip install django-pwdprotect.
- Add pwdprotect your INSTALLED_APPS.
- Add pwdprotect.middleware.PasswordProtectMiddleware to your MIDDLEWARE settings.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
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 |
Close
Hashes for django_pwdprotect-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 153cb8ae3c5200e39245f2936ed6a8517e496ad4ae256c3cf698d2d277a24a95 |
|
MD5 | 05c954dd0492afda4bd08d61c0043fc8 |
|
BLAKE2-256 | e2188b9d28323fb375b28ab314215ec9d61c1a76da73f27eb9426c9e12d255e5 |