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.
Release files for django-pwdprotect 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-pwdprotect-1.0.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pwdprotect-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / django-pwdprotect-1.0.1.tar.gz
| Download URL | django-pwdprotect-1.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bc8cddbeaf8d917989041d5d407bfc4d9e0c4ff8062af12bbe50f4b19a7626e
|
|
BLAKE2b-256 checksum How to use checksums |
0e7b045b399afd2a662729d17dc3edb5ab8af6cabd1afd5d9af60b6b0bced0e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_pwdprotect-1.0.1-py2.py3-none-any.whl
| Download URL | django_pwdprotect-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
153cb8ae3c5200e39245f2936ed6a8517e496ad4ae256c3cf698d2d277a24a95
|
|
BLAKE2b-256 checksum How to use checksums |
e2188b9d28323fb375b28ab314215ec9d61c1a76da73f27eb9426c9e12d255e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|