There are two main ways to set up a Flask application on PythonAnywhere:
- Starting from scratch using our default versions of Flask
- Importing a pre-existing app using Manual configuration, and using a virtualenv
The first option works well if you're just playing around and want to throw something together from scratch. Go to the Web Tab and hit Add a new Web App, and choose Flask and the Python version you want.
The second option is described in more detail below