my project structure is like below:
./apps
./apps/bizusers
./apps/bizusers/admin.py
./apps/bizusers/apps.py
./apps/bizusers/models.py
./apps/bizusers/serializers.py
./apps/bizusers/tests.py
./apps/bizusers/views.py
./apps/bizusers/__init__.py
./apps/__init__.py
./config
./config/asgi.py
./config/settings.py
./config/urls.py
./config/wsgi.py
./config/__init__.py
./manage.py
./requirements.txt
My custom user model is in
./apps/bizusers/models.py
I have this in settings:
INSTALLED_APPS = [ 'apps', ]
I added AUTH_USER_MODEL = "bizusers.User"
in settings.py
I have tried to edit ./apps/__init__.py
and ./apps/bizusers/apps.py
but I cannot get it to work.
I have tried these solutions below:
having models directory and AUTH_USER_MODEL
Model in sub-directory via app_label?
'MyAppConfig' must supply a name attribute
Thanks.