From 1a15dbf0cafa769927266315bba8435e10e1cf52 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 29 Dec 2010 17:38:19 +0900 Subject: [PATCH] =?UTF-8?q?Update=20link=20in=20README.=20Let=E2=80=99s=20?= =?UTF-8?q?try=20not=20to=20change=20URLs=20from=20now=20on=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README | 2 +- exyr/pages/2010/Jinja-in-Django.html | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README b/README index 3f9cc5b..4b13a9d 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ This is the source code generating the website at http://exyr.org/ -See http://exyr.org/web-development/Flask-Static/ for details. +See http://exyr.org/2010/Flask-Static/ for details. To install, run diff --git a/exyr/pages/2010/Jinja-in-Django.html b/exyr/pages/2010/Jinja-in-Django.html index 0278c7c..4bcb040 100644 --- a/exyr/pages/2010/Jinja-in-Django.html +++ b/exyr/pages/2010/Jinja-in-Django.html @@ -77,17 +77,13 @@ See [Jinja’s documentation](http://jinja.pocoo.org/api/#jinja2.Environment) for details. -I’ve seen two main differences apart form the syntax: use +I’ve seen two main differences apart form the syntax: :::html+jinja - {{ url_for('view_name') }} - + Use {{ url_for('view_name') }} and + -instead of - - :::html+jinja - {% url view_name %} - {% csrf_token %} + where in Django templates you use {% url view_name %} and {% csrf_token %}