- How do I fully replace the username field with an email field for Django authentication?
AbstractUser
vsAbstractBaseUser
Check out the post.
-
Fork/Clone
-
Pick one:
AbstractUser
orAbstractBaseUser
-
Run:
$ python3 -m venv env && source env/bin/activate (env)$ pip install Django (env)$ python manage.py makemigrations (env)$ python manage.py migrate (env)$ python manage.py runserver