django-pwdprotect-1.0.1
توضیحات
Password-protected URLs for Django
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-pwdprotect-1.0.1 |
| نام | django-pwdprotect |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ed Rivas |
| ایمیل نویسنده | ed@unplug.studio |
| آدرس صفحه اصلی | https://gitlab.com/unplugstudio/django-pwdprotect |
| آدرس اینترنتی | https://pypi.org/project/django-pwdprotect/ |
| مجوز | MIT |
Django Password-Protect
=======================
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_.
.. _CONTRIBUTING.md: CONTRIBUTING.md
نحوه نصب
نصب پکیج whl django-pwdprotect-1.0.1:
pip install django-pwdprotect-1.0.1.whl
نصب پکیج tar.gz django-pwdprotect-1.0.1:
pip install django-pwdprotect-1.0.1.tar.gz