diff options
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() |