Opened 8 years ago

Closed 8 years ago

#12863 closed (fixed)

POST data example broken by CSRF middleware

Reported by: Jirka Vejrazka Owned by: nobody
Component: Uncategorized Version: 1.2-beta
Severity: Keywords: csrf
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The POST data example in the sample "hello" application does not work in Django 1.2beta. I guess the easiest solution is to put decorate [browser:django/trunk/examples/hello/ post_data] with @csrf_exempt.



Change History (1)

comment:1 Changed 8 years ago by Luke Plant

Resolution: fixed
Status: newclosed

(In [12438]) Fixed #12863 - bug in 'examples' app.

Fixed by removing the whole examples directory, since it provides poor
example code and poor documentation, both being catered for much better

Note: See TracTickets for help on using tickets.
Back to Top