GCru / django-custom-user-model

django custom user model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a Custom User Model in Django

  1. How do I fully replace the username field with an email field for Django authentication?
  2. AbstractUser vs AbstractBaseUser

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Pick one: AbstractUser or AbstractBaseUser

  3. Run:

    $ python3 -m venv env && source env/bin/activate
    (env)$ pip install django==3.0.4
    (env)$ python manage.py makemigrations
    (env)$ python manage.py migrate
    (env)$ python manage.py runserver

About

django custom user model

License:MIT License


Languages

Language:Python 92.5%Language:HTML 7.5%