32 thoughts on “How to deploy a Python (Flask) web app on a (PythonAnywhere) live server

  1. Could you give some idea to avoid the below error,

    """con = pyodbc.connect(driver='{ODBC Driver 17 for SQL Server}',host='LENOVOSQLEXPRESS',database='students',trusted_connection='tcon',user='root1

    ',password='[email protected]').cursor()
    pyodbc.Error: ('01000', u"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")

    """

    When i execute the same code by installed app like notepad++, expected output getting.

  2. I have a simple single file mydata.py which has main method and while loop n I want to deploy it on webjob how to do it any link?

  3. We are soo luck to do all this for free! Ponder upon this, what if python was paid, what if you could only purchase a pythoneverywhere account?

  4. hi, first of all thank you so much for such a simple way to show to how to make a flask app live!!!!! I am absolutely new in learning React and built a simple search web app that is using Flask to search a database and return data to render via react again. My app is working fine in my local host and I am looking how I can deploy such app in internet using any of the free live server. I have been looking for a video that will server my need but everyone is talking in so high level, its hard to follow. can you help?? or anyone?? for a relevant tutorial ?? really stuck for over a week now!!

  5. You are amazing man. I built my python app and configured it to work with the Flask web frame work. I then followed your video tutorial of how to add a python app to pythonanywhere and it worked, Dude. My app worked. I thank you so much for helping me get my python app to the world. If any one cared to check it out, just send me a line, and I will text you the link.

  6. Any suggestion on how to install a Python script on a cPanel hosting? I want to install Quillpad.com script on to one of my domain. Please suggest.

  7. but what about static files how to get design on live server. pls if anyone have any idea pls pls comment. I will be highly grateful

  8. Someone help me how can I make database work as I put my database file into folder but when I try to put data inside it doesn't show in my table but when i run local server it shows data there as I m using Sqlite not mysql

  9. My application takes a CSV file and displays the contents of the file. After hosting the webpage, I uploaded the file and clicked submit. But it shows this error message :
    "Internal Server Error"
    "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

    What should happen is that when the user clicks submit button after uploading the csv file, the python app sends data back to the html file to populate the page with data from the csv file.

Leave a Reply

Your email address will not be published. Required fields are marked *