ModuleNotFoundError: No module named 'app1'

2k Views Asked by At

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.

1

There are 1 best solutions below

0
Meera K On BEST ANSWER

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!