diff options
author | blendoit <blendoit@gmail.com> | 2020-01-23 19:21:01 -0800 |
---|---|---|
committer | blendoit <blendoit@gmail.com> | 2020-01-23 19:21:01 -0800 |
commit | 6056f5a2f5e00347c73e827e6f1f781d08d91799 (patch) | |
tree | 5c9c630853aacbd7bd8a67dd0338d3d5e3c1065c /app/routes.py | |
parent | d4b417b6d7c42440a4002aa183a9bb580429a6ec (diff) |
Create placeholder content and "yes" page styles.
Diffstat (limited to 'app/routes.py')
-rw-r--r-- | app/routes.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/routes.py b/app/routes.py index f1497b8..7152edd 100644 --- a/app/routes.py +++ b/app/routes.py @@ -1,5 +1,7 @@ from flask import Flask, render_template, flash, redirect, url_for from forms import RegistrationForm, LoginForm +from placeholder_news import news +from placeholder_messages import messages app = Flask(__name__) app.config['SECRET_KEY'] = 'foobarblendoitfoobar!' @@ -27,14 +29,17 @@ posts = [{ def home(): return render_template('home.html', posts=posts) + @app.route("/yes") def yes(): - return render_template("yes.html") + return render_template("yes.html", messages=messages, news=news) + @app.route("/no") def no(): return render_template("no.html") + @app.route("/register", methods=['GET', 'POST']) def register(): form = RegistrationForm() |