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.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9749b07581f69cf1f47776f03550c081716c8b71ae694295d8f82aa0e77518f7 |
|
MD5 | c721890647ec8036f34048ea8daf9995 |
|
BLAKE2b-256 | ce1c4fbd8979d3e185b14e14249531050b5ee8b30c93fd0092ccce47fa17dbe9 |
Hashes for django_use_email_as_username-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c39993e14a1ea95af0a6ab2502d1e3333828011db27156be3fc08e96f87446 |
|
MD5 | e6ec1d23b78e547fdc4477a528a9ded1 |
|
BLAKE2b-256 | 93eee4fe42e47729ae971220c96f1d9dadd07370176abf4e0bbb41b4ec824f9d |