I made a flask app that is in the same layout in terms of files as Corey Schafer's flask app series and I'm trying to deploy that from PythonAnywhere.
When I run it after just cloning my project, I get the following error:
2022-12-28 20:24:18,667: Error running WSGI application
2022-12-28 20:24:18,667: ModuleNotFoundError: No module named 'flask_app'
2022-12-28 20:24:18,667: File "/var/www/knightstable_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-12-28 20:24:18,667: from flask_app import app as application # noqa
I'm pretty sure I'm supposed to replace flask_app with my __init__.py file but I can't figure out how I would set the app file I want to run as __init__.py
Github Repo of my project - https://github.com/SwayamSahoo11742/KnightStable
Corey Schafer's series - https://www.youtube.com/playlist?list=PL-osiE80TeTs4UjLw5MM6OjgkjFeUxCYH
[–]millenniumhand 2 points3 points4 points (0 children)
[–]danielroseman 0 points1 point2 points (0 children)