How to configure a app as a pythonanywhere wsgi application applications usually have an "app" variable to represent the application. You can turn this into a wsgi-compatible application by calling .wsgifunc() on it. So, in your wsgi file, you'll need something like this:

from myapp import app
application = app.wsgifunc()

Other than that, be sure to check out our guide to Debugging import errors for general tips on dealing with problems in your wsgi config.