Django csrf_token Template Tag Fix

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

More like this

  1. csrf_token for mako by damd 3 years, 10 months ago
  2. Convert XHTML-compatible shorttag to HTML-compatible tag. by clamothe 5 years, 12 months ago
  3. really spaceless (trim spaces at line start) by wolfram 6 years, 3 months ago
  4. Boxes as template tags by pedrolima 6 years, 1 month ago
  5. Add CSS class template filter by lazerscience 3 years, 5 months ago

Comments

mpf (on July 31, 2010):

Or you can use {{ csrf_token }} instead.

#

(Forgotten your password?)