First, set up a virtualenv.

In the virtualenv, install flask, then try out this .py file.

from flask import Flask

app = Flask(__name__)

@app.route('/', methods=['GET'])
def index():
   return 'Hi'

Run this script in the virtualenv. It will not exit.

Now you should be able to access http://localhost:5000/ in your web browser.


Need help?

If you need help with XWiki you can contact: