Good day to all! There is a similar project structure:
project_dir - startproject_dir - base - всё, что касается приложения "base" - всё, что касается startproject_dir (setting, urls, wsgi) I connect the application in settings.py:
INSTALLED_APPS = [ 'base.apps.BaseConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] But I get the error:
ModuleNotFoundError: No module named 'base' However, if you move the base application to the project_dir (that is, the standard location of the applications), the error disappears.
How to be here?