Django Custom User model in a package

image
I put my custom user model inside a package I also included it on the init.py

But I am getting this error
##################################

Custom Auth Model

AUTH_USER_MODEL = ‘authentication.CustomUserModel’

File “D:\WORK\rentermade\Branches\Test2\RenterMade.com\authentication\models_init_.py”, line 2, in
from .base import Base
File “D:\WORK\rentermade\Branches\Test2\RenterMade.com\authentication\models\base.py”, line 4, in
User = get_user_model()
^^^^^^^^^^^^^^^^
File “C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\contrib\auth_init_.py”, line 164, in get_user_model
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model ‘authentication.CustomUserModel’ that has not been installed
PS D:\WORK\rentermade\Branches\Test2\RenterMade.com>

It is stating that the AUTH_USER_MODEL that you have provided, it’s app module is not in INSTALLED_APPS in you settings.py file, Include your app in INSTALLED_APPS.

Just solved it! the issue is I added extra files on my init idk how and why after that it got fix lol. Thanks