websauna.tests.form.csrfsamples module

Cross-site request forgery test views.

websauna.tests.form.csrfsamples.csrf_exempt_sample(request)[source]
websauna.tests.form.csrfsamples.csrf_exempt_sample_context(context, request)[source]
websauna.tests.form.csrfsamples.csrf_sample(request)[source]
websauna.tests.form.csrfsamples.home(request)[source]

We need one GET request to initialize session and set CSRF token.