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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3019ca2d8434652aef14b1c4cd087edddabd9466a5372bea69ab522768435d5 |
|
MD5 | 5bb6890b550adfb6f9aa306996b5a4fc |
|
BLAKE2b-256 | 645a4cbe35a7a68f5fe630e5b6c1c171006be17e931b051cef7cc056fa6c6e7f |
Hashes for django_use_email_as_username-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe440dddd0554bca743873174bd17b5e96c1a2eae1e50d06b6150a5083097950 |
|
MD5 | 244ed3fa4e483f9829505af842f9deae |
|
BLAKE2b-256 | 65d1418a0805027a15cb7d3955d12f98d32fe94578d6f2c66fc0e17181f230e0 |