Conflicts:
	run.py
This commit is contained in:
kelepirci
2016-07-08 23:28:57 +03:00
3 changed files with 20 additions and 1 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"

9
run.py
View File

@@ -1,4 +1,5 @@
#!../venv/bin/python
<<<<<<< HEAD
# under normal circumstances, this script would not be necessary. the
# sample_application would have its own setup.py and be properly installed;
# however since it is not bundled in the sdist package, we need some hacks
@@ -14,4 +15,10 @@ from dash import create_app
# create an app instance
app = create_app()
app.run(debug=True, host='0.0.0.0', port=8000)
app.run(debug=True, host='0.0.0.0', port=8000)
=======
from app import app
app.run(debug=True, host="0.0.0.0", port=8000)
>>>>>>> 93b030a6f6b2a025630ebe6c8af9f1de4c93a36a