Added basic flask container

This commit is contained in:
2012-02-05 11:27:02 +00:00
parent 233c2946de
commit cbc7d1eb9f

13
standings/flask.py Normal file
View File

@@ -0,0 +1,13 @@
try:
from flask import Flask
except ImportError:
raise Exception('Flask is not available, please install if you wish to use Standings as a webapp')
from standings import Standings
app = Flask(__name__)
stdobj = Standings()
@app.route('/')
def standings():
return stdobj._get_html()