From df15e5414545f0748473a63affefd91052acaee3 Mon Sep 17 00:00:00 2001 From: kelepirci Date: Fri, 8 Jul 2016 01:33:43 +0300 Subject: [PATCH] Initial configuration This commit contains initial configuration and directory structure --- app/__init__.py | 5 +++++ app/views.py | 7 +++++++ run.py | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 app/__init__.py create mode 100644 app/views.py create mode 100755 run.py diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..f7adfd3 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,5 @@ +from flask import Flask + + +app = Flask(__name__) +from app import views \ No newline at end of file diff --git a/app/views.py b/app/views.py new file mode 100644 index 0000000..26bdcb9 --- /dev/null +++ b/app/views.py @@ -0,0 +1,7 @@ +from app import app + + +@app.route('/') +@app.route('/index') +def index(): + return "Hello, dash-stack" \ No newline at end of file diff --git a/run.py b/run.py new file mode 100755 index 0000000..83add55 --- /dev/null +++ b/run.py @@ -0,0 +1,5 @@ +#!../venv/bin/python +from app import app + + +app.run(debug=True, host="0.0.0.0", port=8000) \ No newline at end of file