django-rapyd-modernauth-0.0.4
توضیحات
A Django application that provides a custom User model where the username is the email address.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-rapyd-modernauth-0.0.4 |
| نام | django-rapyd-modernauth |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | "Karthic Raghupathi", |
| ایمیل نویسنده | "karthicr@gmail.com", |
| آدرس صفحه اصلی | https://github.com/karthicraghupathi/django_rapyd_modernauth |
| آدرس اینترنتی | https://pypi.org/project/django-rapyd-modernauth/ |
| مجوز | Apache Software License |
# Django Rapyd ModernAuth
This package provides a custom `User` model where the username is the email address.
## Inspiration
Users today expect to use their email address as the username during authentication. This works well because:
- Users already know their email addresses by heart.
- Since email addresses are unique, users don't need to remember yet another item when either signing up or logging into web applications. IMHO this is a significant factor that plays a vital role in user adoption.
- This is a time tested model and many web applications today follow this.
However, Django's default approach for authentication requires a user provide both a username and an email address during sign up and then just use the username during login.
## Usage
**Note:** *Django recommends you do this right at the beginning of the project. Making this change mid-project becomes significantly harder.*
- Install the package with:
```
pip install django-rapyd-modernauth
```
- Edit Django settings:
- Add `modernauth` to `INSTALLED_APPS`.
- Set `AUTH_USER_MODEL = modernauth.User`.
- Create models with:
```
./manage.py migrate
```
نیازمندی
| مقدار | نام |
|---|---|
| <3.3,>=3 | Django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl django-rapyd-modernauth-0.0.4:
pip install django-rapyd-modernauth-0.0.4.whl
نصب پکیج tar.gz django-rapyd-modernauth-0.0.4:
pip install django-rapyd-modernauth-0.0.4.tar.gz