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, 11 months ago
  2. Temporary admin messages (MOTD) by bthomas 4 years, 4 months ago
  3. csrf_token for mako by damd 3 years ago
  4. Convert XHTML-compatible shorttag to HTML-compatible tag. by clamothe 5 years, 1 month ago
  5. jinja2 csrf_token extension by jasongreen 3 years, 5 months ago

Comments

mpf (on July 31, 2010):

Or you can use {{ csrf_token }} instead.

#

(Forgotten your password?)