Skip to content

Commit

Permalink
Chapter 1: Hello, World! (v0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Nov 27, 2019
1 parent e308d0d commit 23b3fc8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FLASK_APP=microblog.py
5 changes: 5 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from flask import Flask

app = Flask(__name__)

from app import routes
7 changes: 7 additions & 0 deletions app/routes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from app import app


@app.route('/')
@app.route('/index')
def index():
return "Hello, World!"
1 change: 1 addition & 0 deletions microblog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from app import app

0 comments on commit 23b3fc8

Please sign in to comment.