Django csrf_token Template Tag Fix

1
{% with csrf_token as csrf_token_clean %}{{ csrf_token_clean }}{% endwith %}

More like this

  1. Add CSRF token to templates by coleifer 1 year, 10 months ago
  2. Temporary admin messages (MOTD) by bthomas 4 years, 3 months ago
  3. csrf_token for mako by damd 2 years, 12 months ago
  4. Convert XHTML-compatible shorttag to HTML-compatible tag. by clamothe 5 years ago
  5. jinja2 csrf_token extension by jasongreen 3 years, 4 months ago

Comments

mpf (on July 31, 2010):

Or you can use {{ csrf_token }} instead.

#

(Forgotten your password?)