项目作者: testdrivenio

项目描述 :
django custom user model
高级语言: Python
项目地址: git://github.com/testdrivenio/django-custom-user-model.git
创建时间: 2019-02-06T23:19:57Z
项目社区:https://github.com/testdrivenio/django-custom-user-model

开源协议:MIT License

下载


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:

    1. $ python3 -m venv env && source env/bin/activate
    2. (env)$ pip install Django
    3. (env)$ python manage.py makemigrations
    4. (env)$ python manage.py migrate
    5. (env)$ python manage.py runserver