Jump to content

cgarcia

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by cgarcia

  1. Thanks, it worked ok. It was very simple.
  2. Hello. someone knows, how to debug an application flask in python this is my code /home/cgarciar/public_html/flask/myapp.py #! /usr/bin/python3.6 import sys from flask import Flask #, __version__ app = Flask(__name__) application = app @app.route("/") def hello(): return "Hello world!" @app.route("/flask/version/") def p_version(): return "Flask version %s" % __version__ if __name__ == "__main__": app.run() and file : /home/cgarciar/public_html/flask/flask.wsgi #! /usr/bin/python3.6 import sys import os sys.path.append('/home/cgarciar/public_html/flask') os.path.insert(0,os.path.dirname(__file__)) from myapp import app as application # make the secret code a little better application.secret_key = 'secret' with permission 755 y result see "http://www.cesly.heliohost.org/flask/flask"
×
×
  • Create New...