1234567891011121314151617181920 |
- from flask import render_template
- from app import app
- @app.route('/')
- @app.route('/index')
- def index():
- user = {'username': "Pusheen"}
- posts = [
- {"author": {"username": "Stormy"},
- "body":"Meowingful day, isn't it ? "
- },
- {"author": {"username": "Thomos"},
- "body": "bla bla bla "
- }
- ]
- return render_template('index.html',
- title="home",
- user=user,
- posts=posts)
|