Skip to content

Commit 58689a8

Browse files
Work on Flask intro
1 parent 264eeda commit 58689a8

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

work/flask-1/.flaskenv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FLASK_APP=demo.py

work/flask-1/demo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
from program import app

work/flask-1/program/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
from flask import Flask
2+
3+
app = Flask(__name__)
4+
5+
from program import routes

work/flask-1/program/routes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
from program import app
3+
4+
@app.route('/')
5+
@app.route('/index')
6+
def index():
7+
return "Hello Pythonistas"

0 commit comments

Comments
 (0)