Chapter 1: Hello, World! (v0.1)

This commit is contained in:
Miguel Grinberg 2017-09-04 23:23:07 -07:00
parent e308d0d969
commit 23b3fc85d4
No known key found for this signature in database
GPG Key ID: 36848B262DF5F06C
4 changed files with 14 additions and 0 deletions

1
.flaskenv Normal file
View File

@ -0,0 +1 @@
FLASK_APP=microblog.py

5
app/__init__.py Normal file
View File

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

7
app/routes.py Normal file
View File

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

1
microblog.py Normal file
View File

@ -0,0 +1 @@
from app import app