I have the same issue.... but the files are located in the right place (https://help.pythonanywhere.com/pages/DebuggingImportError/)
Error:
Error running WSGI application
TypeError: create_app() takes 0 positional arguments but 2 were given
file init.py (where create_app is located)
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'XXXXXX'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = 'True'
db.init_app(app)
login_manager = LoginManager()
login_manager.login_view = 'auth.login'
login_manager.init_app(app)
from .models import User
@login_manager.user_loader
.....
return app
file wsgi.py
# +++++++++++ FLASK +++++++++++
import sys
project_home = u'/home/aemartinez/cryptosite'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
from project import create_app as application
When use the console all the files are located OK
(venv) 20:55 ~ $ python -i /var/www/aemartinez_pythonanywhere_com_wsgi.py
>>> from project import create_app
>>> import project
>>> print(project.__file__)
/home/aemartinez/cryptosite/project/__init__.py
>>> import sys
>>> print('\n'.join(sys.path))
/home/aemartinez/cryptosite
/var/www
/home/aemartinez/cryptosite/venv/lib/python37.zip
/home/aemartinez/cryptosite/venv/lib/python3.7
/home/aemartinez/cryptosite/venv/lib/python3.7/lib-dynload
/usr/lib/python3.7
/home/aemartinez/cryptosite/venv/lib/python3.7/site-packages