From 61b1573fe25759aacafedb3a0fd24dd6a04d56a7 Mon Sep 17 00:00:00 2001 From: debrice Date: Sun, 5 Feb 2012 19:44:35 -0800 Subject: [PATCH] Additional sections --- Large-app-how-to.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Large-app-how-to.md b/Large-app-how-to.md index 13fcee8..b98cc1e 100644 --- a/Large-app-how-to.md +++ b/Large-app-how-to.md @@ -252,9 +252,9 @@ This decorator is checking that g.user has a value assigned to it, otherwise it # the session can't be modified as it's signed, # it's a safe place to store the user id session['user_id'] = user.id - flash('Welcome %s' % user.name, INFO_MSG) + flash('Welcome %s' % user.name) return redirect(url_for('user.home')) - flash('Wrong email or password', ERROR_MSG) + flash('Wrong email or password', 'error-message') return render_template("users/login.html", form=form) @mod.route('/register/', methods=['GET', 'POST']) @@ -388,7 +388,14 @@ now you can go in your root, activate your virtual env and run `python run.py` . * Running on http://127.0.0.1:5000/ * Restarting with reloader -# Caching +Open your web-browser at `http://127.0.0.1:5000/users/me/`, you should be redirected to the login page and see a link to the register page. + +# Other good practices + +## Caching + +## Javascript's namespace + # Setting up your web server