mirror of
https://github.com/miguelgrinberg/microblog.git
synced 2025-12-08 18:02:07 +00:00
Chapter 1: Hello, World! (v0.1)
This commit is contained in:
parent
e308d0d969
commit
23b3fc85d4
5
app/__init__.py
Normal file
5
app/__init__.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from flask import Flask
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
from app import routes
|
||||||
7
app/routes.py
Normal file
7
app/routes.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from app import app
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
@app.route('/index')
|
||||||
|
def index():
|
||||||
|
return "Hello, World!"
|
||||||
1
microblog.py
Normal file
1
microblog.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from app import app
|
||||||
Loading…
x
Reference in New Issue
Block a user