From cbc7d1eb9f3b402b4b355214c64aa255aa1114e4 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 5 Feb 2012 11:27:02 +0000 Subject: [PATCH] Added basic flask container --- standings/flask.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 standings/flask.py diff --git a/standings/flask.py b/standings/flask.py new file mode 100644 index 0000000..d099ec0 --- /dev/null +++ b/standings/flask.py @@ -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()