baidoc

Members
  • Posts

    1
  • Joined

  • Last visited

baidoc's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hello, Has anyone managed to install Flask on their cPanel Web Hosting? I've been trying to install the Flask on my Hawk Host Shared Hosting using Python but I'm getting "500 Internal Error The server encountered an unexpected condition which prevented it from fulfilling the request." I've been following the exact guide from here: https://blog.ouseful.info/2016/09/17/creating-a-simple-python-flask-app-running-on-reclaim-hosting/ myapp.py: from flask import Flask app = Flask(__name__) application = app # our hosting requires application in passenger_wsgi @app.route("/") def hello(): return "This is Hello World!\n" if __name__ == "__main__": app.run() passenger_wsgi.py: from myapp import application I'd appreciate your help guys. Thank you!