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:
# Run in your terminal pip install django-use-email-as-username
Add it to your INSTALLED_APPS:
# In your settings.py file INSTALLED_APPS = ( ... 'django_use_email_as_username.apps.DjangoUseEmailAsUsernameConfig', ... )
Create your new django app:
# Run in your terminal python manage.py create_custom_user_app
Add the new app to your INSTALLED_APPS:
# In your settings.py file INSTALLED_APPS = ( ... 'django_use_email_as_username.apps.DjangoUseEmailAsUsernameConfig', 'custom_user.apps.CustomUserConfig', ... )
Now instruct Django to use your new model:
# In your settings.py file AUTH_USER_MODEL = 'custom_user.User'
Create and run migrations:
# Run in your terminal 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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b4b3d3446fbcbd6d6c2cc190a1e6b4decf0ae3425d25a5e0b1fe28ad6f32d7 |
|
MD5 | 56bdb719021e061de85a6d430eefaeba |
|
BLAKE2b-256 | 41ebb83930f39b81116484364f3a7e1dda5e668cda14bf32f43a9b03f3a453bd |
Hashes for django_use_email_as_username-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df5e1d688c6aa9f157f1e5c4c1c7b085fb18d66b0299c397984c5ec87d8a8de |
|
MD5 | 8b9713c87193ff3f0200b573ee8e39fc |
|
BLAKE2b-256 | 5f12414fe6e3821b835a80e5cda54c37502bf32f1a36d70229e46103ec2d8c30 |