How to Host Your Flask App on PythonAnywhere for Free

Sohan Dillikar
The Startup
Published in
6 min readJan 11, 2021

--

Photo by Florian Olivo

In this article, I will guide you throughout the process of hosting your Flask Application live on PythonAnywhere for free.

Step 1: Create a requirements.txt

Create a new file in your project directory called requirements.txt. Make sure the spelling is correct. In the file write down all the libraries your package uses as well as the version. Here is how you can get the module version.

Here is what my requirements.txt looks like for my simple app.

flask==1.1.1

Step 2: Create a PythonAnywhere account

Head over to https://www.pythonanywhere.com/pricing and click on the button that says “Create a Beginner account.” This will allow you to create a free account. After clicking that, you will be asked to enter your email and to create a username and password. Make sure you choose your username wisely, because you will NOT be able to change it and because your website domain will be…

--

--

Sohan Dillikar
The Startup

The Daily Writer ✍️ | Entrepreneurship, Self-Improvement & Content Creation 🧠 | Learn how to build a life doing what you love 🚀✨