semvec/pypi-packages huggingface dataset:
django-custom-user-email-auth 1.0
A Django app that eases the stress of extending the AbstractBaseUser model.
License: MIT-License

**********************************
DJANGO-CUSTOM-USER-EMAIL-AUTH
**********************************

Django-Custom-User-Email-Auth is a Django app that saves the stress of
extending **AbstractBaseUser** to use email for authentication.
 
Quickstart 
-----------

1. Add **django_custom_user_email_auth** to your ``INSTALLED_APPS`` setting like this:
::

	INSTALLED_APPS = [
	 	...
		'django_custom_user_email_auth',
	]

2. Import the model into your project models.py like this:
::

	from django_custom_user_email.models import CustomUser
	
	
	class NewUser(CustomUser):
		pass

3. Import the modelAdmin in your project admin.py like this:
::


	from django.contrib import admin
	from django_custom_user_email.admin import CustomUserAdmin
	
	from .models import NewUser
	
	
	class NewAdmin(CustomUserAdmin):
		pass
		
	admin.site.register(NewUser, NewAdmin)

4. Run  ``python manage.py makemigrations``  and  ``python manage.py migrate``  to create the NewUser model.

5. Run  ``python manage.py createsuperuser``  and follow the prompt.

6. Start the development server and visit http://127.0.0.1:8000/admin/.