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?

  • Django version 2.1 - Aquinary
  • startproject_dir.base.apps.BaseConfig (of course, do not forget to make sure that startproject_dir is a python module) - andreymal
  • I also tried this solution: django.core.exceptions.ImproperlyConfigured: Cannot import 'base'. Check that 'picra.base.apps.BaseConfig.name' is correct. In each folder I created init .py before this, of course - Aquinary
  • Tried to do what the text suggests to make this error? - andreymal

0