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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b5938bd7d1217c5618e8e3efabbc4f4df407e775da13a21282cf0a566a7e1d |
|
MD5 | 991c249244cda082919d71b2e93df480 |
|
BLAKE2b-256 | b4698cb8ec786acd332b6ce79c11a36cd6289b126319e06d129e3c6612db813b |
Hashes for django_use_email_as_username-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a0df5bcb364b409b4495b65bcf3e74b0285be5201668b751ce51c610abb5058 |
|
MD5 | 0a07d7f0095477796f7a1acbcd884d05 |
|
BLAKE2b-256 | 0f4c1f60634a624b3f6c4307d471eb8514f1c481c581c21f2f97d0e61cee1c3b |