Why i can't run my Django project with : python manage.py runserver

I encountered an error:

  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'C:\\Users\\Youssef\\Documents\\Hello_Django\\import_data'

However, I do not have a file named import_data, and I am not using the path C:\\Users\\Youssef\\Documents\\Hello_Django\\import_data. This is where I had my previous project, which I have since deleted.

i tried this : python manage.py runserver

i expect the localhost to my web app

I would go with @Jason. Maybe you skipped the creation of __init__.py file in HelloDjango folder.

But if you already created, check if the import path on the module that you are importing import_data is correct.

Back to Top