django - ModuleNotFoundError: No module named 'My-Project ...
stackoverflow.com › questions › 64391698Oct 16 '20 at 19:35. well you actually don't have a module called My-Project - your "main app" is called app- typical convention is to call it the same as the project. so try changing os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DMy-Project.settings')(i hope this D at the beginning is just a typo) to os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')[link] (docs.djangoproject.com/en/3.1/topics/settings/….