How do I change the default model of a user?
from django.contrib.auth.models import User
default settings path django.conf.global_settings
global_settings.py file:
https://github.com/django/django/blob/master/django/conf/global_settings.py#L508
so settings.py add code line
AUTH_USER_MODEL = 'myuserapp.MyUser'
create MyUser models.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With