diff -r 657f07fc5ef7 docs/ref/contrib/csrf.txt --- a/docs/ref/contrib/csrf.txt Wed Sep 28 14:00:43 2011 +0000 +++ b/docs/ref/contrib/csrf.txt Fri Sep 30 10:33:18 2011 +0200 @@ -146,6 +146,24 @@ :ttag:`csrf_token`, you may need to ensure the client receives the cookie by using :func:`~django.views.decorators.csrf.ensure_csrf_cookie`. +Other template engines +---------------------- + +When using a different template engine than Django's built-in engine, you can +set the token in your forms manually after making sure it is available in the +context of the template. + +So in Cheetah for example, your form could contain the following: + +.. code-block:: html + +
+ +You may use javascript similar to the :ref:`AJAX code