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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2f6c8cb9a1c02e8a56b3ddd47c4a489f0bb39c760259cf6e60325c74ed5916 |
|
MD5 | 52f2423b3ffd0c21303c10c378816273 |
|
BLAKE2b-256 | 5c28fcc7e8a9cd0acc9807187542935185bec7e989b42ac42040655e6cdd4271 |
Hashes for django_use_email_as_username-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80cb38bc641617b898c4e36e967e70bf3739bd2513df035e978a1eb14e08ef0a |
|
MD5 | 97355258875aa8c2e00358bd8f5cac29 |
|
BLAKE2b-256 | aef3974afeed8ffa97a4f63acccfed535bd1c1306aa4d9e454df61f931f93741 |