Forums

'IOError: Cannot Open Resource' with Django 1.10 Using custom WSGI App

Hi,

I followed the instructions using https://help.pythonanywhere.com/pages/DeployExistingDjangoProject/ to deploy an existing Django project. However, I continue to get the following error in the error logs:

Traceback (most recent call last):
  File "/bin/user_wsgi_wrapper.py", line 154, in __call__
    app_iterator = self.app(environ, start_response)
  File "/bin/user_wsgi_wrapper.py", line 170, in import_error_application
    raise e
IOError: cannot open resource

Have no idea what this means or how to get it to work. The Django project works perfectly locally on my own machine.

Thanks in advance.

Hi there,

That's weird. Try running your wsgi file directly from bash:

python /var/www/michaelholloway_pythonanywhere_com_wsgi.py

to to see if there is a clearer error message?