{"version":"1.0","type":"rich","title":"Example of adding Django CSRF token in an page that POSTs using intercooler.","description":"This example shows how to add a Django CSRF token to pages that send POST requests through intercooler.js, ensuring server-side validation succeeds. It displays a table of rows from a Django template context, each with three action buttons that trigger intercooler’s `ic-post-to` calls to different API endpoints. A hidden form with the `csrfmiddlewaretoken` input, populated via Django’s `{{ csrf_token }}` template variable, is included using the `ic-include` attribute on each button. The intercooler-0.2.0.min.js script is loaded in the scripts block, and the page extends a custom base template.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-11322035?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}