Forums

Can you help me with the next error? Error running WSGI application: ModuleNotFoundError: No module named 'django'

When I open my web I see the error. Error log shows me:Error running WSGI application: ModuleNotFoundError: No module named 'django'. But I installed Django. Could the error occur through python 3.10 on my PC?

Django is pre-installed on PythonAnywhere, so I guess you're running your web app in a virtual environment. Make sure that you installed Django for that venv.

Interestingly, today it works. But I didn't do anything. But I have another error: No such file or directory: '/home/PavelCreator/entries'. I think I understand that default_storage is PavelCreator and I must change the path to the folder.

If it works today without you doing anything, then you probably needed to reload your web app.

For the file error, make sure that you actually have the file that you want to load at /home/PavelCreator/entries

Thanks! Everything works.