Forums

ModuleNotFoundError

I am trying to set up a new web app for Django but I keep getting a ModuleNotFoundError. This is my Error Log:

Error running WSGI application
2018-03-04 21:02:59,848: ModuleNotFoundError: No module named 'todo_app'
2018-03-04 21:02:59,849:   File "/var/www/hasanahmad_pythonanywhere_com_wsgi.py", line 17, in <module>
2018-03-04 21:02:59,849:     application = get_wsgi_application()
2018-03-04 21:02:59,849: 
2018-03-04 21:02:59,849:   File "/home/HasanAhmad/.virtualenvs/venv/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2018-03-04 21:02:59,849:     django.setup(set_prefix=False)
2018-03-04 21:02:59,850: 
2018-03-04 21:02:59,850:   File "/home/HasanAhmad/.virtualenvs/venv/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
2018-03-04 21:02:59,850:     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2018-03-04 21:02:59,850: 
2018-03-04 21:02:59,850:   File "/home/HasanAhmad/.virtualenvs/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__
2018-03-04 21:02:59,850:     self._setup(name)
2018-03-04 21:02:59,850: 
2018-03-04 21:02:59,851:   File "/home/HasanAhmad/.virtualenvs/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
2018-03-04 21:02:59,851:     self._wrapped = Settings(settings_module)

Please help >> Thank you

[edit by admin: formatting]

Have you checked out the help page on debugging import errors? It's got a lot of details about how Python tries to find the modules that make up your code, with some hints and tips on how you can debug this kind of problem.