CsrfMiddleware breaks django test client
|Reported by:||Gruffudd Williams||Owned by:||nobody|
|Cc:||Dave Naffziger||Triage Stage:||Unreviewed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The very excellent CsrfMiddleware has one undesired side-effect: It stops the django test client from working.
Is there a way of identifying that a POST has originated from django.test.client and, if so, disable the checking?
We're currently removing the CsrfMiddleware from settings at runtime in our test harness, but that's a bit naughty!
Change History (18)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|