Forums

ModuleNotFoundError: No module named 'django'

I am trying to deploy my first Django app. I have followed some tutorials and believe I have things right in my WSGI config. However, I keep getting the error: ModuleNotFoundError: No module named 'django'

I have seen other posts suggesting Django may not have installed correctly, so I removed my virtual environment and re-created it with the same result.

When installing the packages for my app, I see this in the console for Django: Collecting Django==4.1 Using cached Django-4.1-py3-none-any.whl (8.1 MB)

Any advice would be helpful at this point. Thank you, Steven

Make sure that you've installed Django into the virtualenv that you are using for your web app.

One of my packages was causing an error, so the rest were not installing and I didn't realize it. Thanks.