Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python Flask application on Starter Linux Hosting with cPanel

I have installed Python 3.4 using SSH in my home/user folder, and I am able to run python script using the command prompt. Now I added one sample .py file in public_html folder and in that file below code is there - 

from flask import Flask
app = Flask(__name__)

def hello():
return "Hello World!"

if __name__ == '__main__':



Now if I run that file using python command then the console is showing - app is successfully hosted on localhost.

But I want to run my application on the domain( which is associated with my GoDaddy account. 

What is the process to run my python flask application in that URL ? 


Community Manager

Hi @pavelray31. Welcome to GoDaddy Community! I'm not a developer, but I'm thinking this won't work if you're using our cPanel Hosting. Those plans only support Python 2.6 and the documentation for Flask says it needs at least 2.7. If you're using a VPS or Dedicated Server, then it's more likely that it would work, but I'm not sure how you would start the app. Perhaps others in the community will have suggestions though. 


JesseW - GoDaddy | Community Manager | 24/7 support available at | Remember to choose a solution and give kudos.