Forums

import error

Hello, I am experiencing this import error. ImportError: cannot import name 'app' from 'dashboardtouse'. the name of my python file is dashboardtouse.py and in the wsgi file I have the following code: from dashboardtouse import app as application # noqa

May I know how I can fix this import error?

You need to correctly set the path to your application. See the theory section here https://help.pythonanywhere.com/pages/DebuggingImportError/ about how to do that.