diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt index 4c847271da..feeba2280c 100644 --- a/docs/ref/contrib/csrf.txt +++ b/docs/ref/contrib/csrf.txt @@ -146,6 +146,24 @@ In addition, if the CSRF cookie has not been sent to the client by use of :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