Search code examples
python-3.xflaskpythonanywhere

Flask Web app not rendering on PythonAnywhere


I am trying to host a Flask web app on python anywhere but I cannot get the website to render. When I visit the link, all I get is a web page saying Hello from Flask!. My error log does not show any message. I am lost and don't know what to do. I made a simple test Flask app in the same directory to test whether it was the domain host, or an import issue, but the test app worked fine. Any help would be appreciated.


Solution

  • In PythonAnywhere's documentation, there is a whole section on Flask that contains detailed information on how to deploy your website, including a beginner's guide. The message Hello from Flask! actually shows that your app is indeed running correctly, this is the default app behavior.

    Once you get your app going, you may also be interested in the following resources in the help pages to supplement your learning: