Skip to content

Commit

Permalink
Update link in README. Let’s try not to change URLs from now on…
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Dec 29, 2010
1 parent 92745ca commit 1a15dbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 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

Expand Down
12 changes: 4 additions & 8 deletions exyr/pages/2010/Jinja-in-Django.html
Expand Up @@ -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') }}
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
Use {{ url_for('view_name') }} and
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">

instead of

:::html+jinja
{% url view_name %}
{% csrf_token %}
where in Django templates you use {% url view_name %} and {% csrf_token %}



0 comments on commit 1a15dbf

Please sign in to comment.