djangomodulemodulenotfounderrordjango-appsvs-community-edition

ModuleNotFoundError: No module named 'app1'


Created a new app named 'app1'. Have included the app name under INSTALLED_APPS settings. Got the error 'ModuleNotFoundError: No module named 'app1''

Request your help.


Solution

  • Thank you Lain! Modified the apps.py to

    from django.apps import AppConfig
    
    
    class app1Config(AppConfig):
        name = 'Project0.app1'
    

    and the settings.py as

    Project0.app1.apps.app1Config
    

    runserver worked!