Hello all,
I've since restructured my project to avoid this issue, but I hit against something funny that feels like it should work, but doesn't.
Specifically, image this is your project structure, where you have an 'internal' app inside your project folder.
my_project/
my_app/model.py #Custom user model here
my_app/apps.py # AppConfig.name = 'my_project.my_app'
settings.py
In your settings.py, you have:
INSTALLED_APPS = [
...
"my_project.my_app"
]
AUTH_USER_MODEL = "my_project.my_app.User"
Then this will error, because the AUTH_USER_MODEL setting expects the app name to not have any dots in its path.
Is this expected? Is "embedding" apps inside the project just an anti-pattern / not intended? Because there are some projects out there with that structure e.g. healthchecks.io (https://github.com/healthchecks/healthchecks/tree/master)