costum user in Django 3.2

35 views
Skip to first unread message

Messie NGBOUANDO

unread,
Nov 8, 2021, 12:50:14 PM11/8/21
to Django users

hello team, how can i fix this error please? 

ValueError: Related model 'My_App.costumuser' cannot be resolved

i want to costumize my user, i got this error when i migrate the model

DJANGO DEVELOPER

unread,
Nov 9, 2021, 6:14:40 AM11/9/21
to Django users
have you added AUTH_USER_MODEL = 'my_app.custommodel' in your settings.py?

David Nugent

unread,
Nov 10, 2021, 11:00:58 PM11/10/21
to django...@googlegroups.com
On Tue, Nov 9, 2021 at 10:15 PM DJANGO DEVELOPER <abubak...@gmail.com> wrote:
have you added AUTH_USER_MODEL = 'my_app.custommodel' in your settings.py?

And note the lower case here as pointed out.  App names are always handled as lowercase internally in Django.

Alessandro Carmignotto

unread,
Nov 11, 2021, 9:17:44 AM11/11/21
to django...@googlegroups.com
May be the reason is on the refuse? Custom, not Costum...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgVxqj21uBDhs2RBLL9U_fhbVxtPHzK7dHjQ7jbA6A%2BDfw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages