#Error when adding AUTH_USER_MODEL to settings.py in DJANGO

10 messages · Page 1 of 1 (latest)

drowsy garnet
#

Hi guys, i'm getting a "simple" trouble when I try to add AUTH_USER_MODEL constant to settings.py. It returns this error, but when I look to INSTALLED_APPS the app name that I'm still working is there. Here it is:

drowsy garnet
#

Here's my file structure

sour tree
#

PMEapp does not have Users, which is used in some form in the auth user model

drowsy garnet
sour tree
#

Yeah, but it's in models, not User

drowsy garnet
#

I've tried here, however the error didn't disappeared. I'm Feeling dumb ...
Created a User file including all user types in PMEapp folder with user inside didn't work.
Moved User file to a folder called User, got the same error.
Put all user types in models.py but User(AbstractUser) was still in User.py . Didn't worked too.

#

I've added a User.py file in models folder and imported it to the file that got all the user types. Same error.

drowsy garnet
drowsy garnet
#

it was missing the init.py file

#

solved