A Django app to use email as username for user authentication.
Project description
A Django app to use email as username for user authentication.
Features
Custom User model with no username field
Use email as username
Includes a django-admin command for quick install
Follow Django best practices for new Django projects and User models.
Quickstart
Install Django use Email as Username:
$ pip install django-use-email-as-username
Add it to your INSTALLED_APPS:
INSTALLED_APPS = ( ... 'django_use_email_as_username.apps.DjangoUseEmailAsUsernameConfig', ... )
Create you new django app:
$ python manage.py create_custom_user_app
Add the new app to your INSTALLED_APPS:
INSTALLED_APPS = ( ... 'django_use_email_as_username.apps.DjangoUseEmailAsUsernameConfig', 'custom_user.apps.CustomUserConfig', ... )
Now instruct Django to use your new model:
AUTH_USER_MODEL = 'custom_user.User'
Create and run migrations:
$ python manage.py makemigrations $ python manage.py migrate
You now have a new Django app which provides a custom User model.
You can further modify the new User Model any time in the future, just remember to create and run the migrations.
Notes
This app gives you a custom User model, which is good practice for new Django projects.
Changing to a custom user model mid-project is not easy.
It is recommended to always create a custom User model at the beginning of every Django project.
Credits
Tools used in rendering this package:
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.
Source Distribution
Built Distribution
Hashes for django-use-email-as-username-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33988d7dc784b6b33cb0b43e64ba8f5b3025bc6cc42d648aacd1aebb3435b9c7 |
|
MD5 | 2737fb39565dd9c920a1d36d07f03513 |
|
BLAKE2b-256 | a5908cca0d52f957c67d16cce00136882623b1205b1bfeb30da112cdf1c8902a |
Hashes for django_use_email_as_username-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f5d0930d986b0c1bf755a934aca3ddc5fe94a3c1b694697b2a18f6168de897 |
|
MD5 | abd89db3965def3fc15baf396ffb15f5 |
|
BLAKE2b-256 | cbdaec795e75273a16b7afae13be972366c0faeebe53e91d0728f3615c0f7bcc |