Skip to content

Instantly share code, notes, and snippets.

@ipconfiger
Created August 8, 2012 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipconfiger/3296547 to your computer and use it in GitHub Desktop.
Save ipconfiger/3296547 to your computer and use it in GitHub Desktop.
a demo for BAE flask app
#-*- coding:utf-8 -*-
from flask import Flask, g, request
app = Flask(__name__)
app.debug = True
@app.route('/')
def hello():
return "Hello, world! - Flask\n"
@app.route('/ping')
def hello():
return "ping\n"
from bae.core.wsgi import WSGIApplication
application = WSGIApplication(app)
@chenyf
Copy link

chenyf commented Aug 8, 2012

from flask import Flask, g, request

app = Flask(name)
app.debug = True

@app.route('/')
def root():
return "Hello, world! - Flask\n"

@app.route('/pong')
def pong():
return "pong\n"

@app.route('/ping')
def ping():
return "ping\n"

from bae.core.wsgi import WSGIApplication
application = WSGIApplication(app)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment