djangosnippets.org: Latest snippets tagged with 'csrf_token'http://djangosnippets.org/tags/csrf_token/2010-07-31T14:08:56.138765-05:00Django csrf_token Template Tag Fix
2010-07-31T14:08:56.138765-05:00Reustlehttp://djangosnippets.org/snippets/2131/<p>If you currently use <code>{% csrf_token %}</code>, you will notice it prints a hidden div, and an xHTML input tag. What if you don't want that hidden div, and/or you want your page to validate with HTML and not xHTML.
</p>
<p>This snippet returns only the csrf token itself, and …</p>
Freely redistributable