Forums

Django: ModuleNotFoundError on INSTALLED_APPS

Basically my file structure goes like

Core/
'--------- settings.py
accounts/
'---------- __init__.py
'---------- apps.py # has an AccountsConfig class
requests/
'----------- __init__.py
'----------- apps.py # has a RequestsConfig class

And in my Core/settings.py i have this:

INSTALLED_APPS = [
...
'accounts.apps.AccountsConfig',
'requests.apps.RequestsConfig',
...
]

But when i try to run my webapp it gives me ModuleNotFoundError: No module named 'requests.apps', and it's also weirder because it only happens to the requests app and not accounts.

I have double checked my python versions, checked if i installed on my virtual environment (i did), and tried rebuilding the virtual environment to check for a broken django installation. Any help?

Make sure that your file structure is exactly the same as you think it is.