Skip to content Skip to sidebar Skip to footer

Python/django Modulenotfounderror: No Module Named 'restaurants'

Following error trace is observed when python code is executed. Potential cause ModuleNotFoundError: No module named 'restaurants' traceback (most recent call last): File '

Solution 1:

I had a similar problem. When I checked setting.py , I saw I've forgot a comma. Seggust to go and check it..

INSTALLED_APPS = [
'home' , #This One was Missed'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

And also check where is restaurant folder it should be similar to:

project|
       |restaurant
       |project

not:

project|           
       |project|
               |restaurant

Post a Comment for "Python/django Modulenotfounderror: No Module Named 'restaurants'"