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:
History
1.0.0 (2018-02-18)
First release on PyPI.
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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8598571c919e013aa53fc1071cc0e891e412c432ef5fe30445bb1d5249187376 |
|
MD5 | e3769769a92ce457418080de01e8622e |
|
BLAKE2b-256 | b2f13e97ba0f70fc0fab86cfcebef8e972700983dd1f1fd9fa54ad30e7354f7a |
Hashes for django_use_email_as_username-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840a6d3428d766c55676d11217efa741de761a5956d04b691e8b08778dcc9c9e |
|
MD5 | 85fcdf7b94c9010cfdf0d931f0f778b3 |
|
BLAKE2b-256 | 5daa0046b3d012df9ec450bb1437778049d48d7063683b49ad586c45184a1570 |