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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5679ca6f29ac345aba12b85cbf508f4455fa9b4a6697b3ef45bc9c8b8e0e348f |
|
MD5 | 0b540c73875a6eb5e229b1e20d08e53d |
|
BLAKE2b-256 | 9f337828bfca6116f6b23331ef8c9d77f1904e6afeb765db8d7a2f33c4ce2f62 |
Hashes for django_use_email_as_username-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117bca14e67ab1adc17737483f1086a901f3cf33dbd7aea5c1aac2ec05c3e6ea |
|
MD5 | 349d6995d8c826bdd01dc9a2c183e836 |
|
BLAKE2b-256 | 400d463678288ce54b1e37bda8621ea5759afd869b567ee09aa1cdb52da6c21d |