summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-02 23:33:03 +0100
committerAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-02 23:33:03 +0100
commit2a6d3eb44476b6dcc299ceab7044c04c8e3528af (patch)
tree0ea763678e7adade0f3cfd3e6b3e5543bba7964c /flask_app.py
parentBasic HTTP server that prints out POST request info (diff)
downloadlog-analysis-2a6d3eb44476b6dcc299ceab7044c04c8e3528af.tar.gz
log-analysis-2a6d3eb44476b6dcc299ceab7044c04c8e3528af.tar.bz2
log-analysis-2a6d3eb44476b6dcc299ceab7044c04c8e3528af.zip
Move the application to the Flask framework
Diffstat (limited to 'flask_app.py')
-rw-r--r--flask_app.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/flask_app.py b/flask_app.py
new file mode 100644
index 0000000..1bfd837
--- /dev/null
+++ b/flask_app.py
@@ -0,0 +1,14 @@
+"""
+The web application built on Flask is contained within this file.
+When run as a script, the Flask development server is started.
+"""
+
+from flask import Flask
+app = Flask(__name__)
+
+@app.route('/')
+def index():
+ pass
+
+if __name__ == '__main__':
+ app.run(host='::1', debug=True)