Initial configuration

This commit contains initial configuration and directory structure
This commit is contained in:
kelepirci
2016-07-08 01:33:43 +03:00
parent 08bae022df
commit df15e54145
3 changed files with 17 additions and 0 deletions

5
app/__init__.py Normal file
View File

@@ -0,0 +1,5 @@
from flask import Flask
app = Flask(__name__)
from app import views

7
app/views.py Normal file
View File

@@ -0,0 +1,7 @@
from app import app
@app.route('/')
@app.route('/index')
def index():
return "Hello, dash-stack"

5
run.py Executable file
View File

@@ -0,0 +1,5 @@
#!../venv/bin/python
from app import app
app.run(debug=True, host="0.0.0.0", port=8000)