Opened 15 years ago

Closed 15 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: no UI/UX: no

Description

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/views.py?rev=5876#L44 post_data] with @csrf_exempt.

HTH

Jirka

Change History (1)

comment:1 by Luke Plant, 15 years ago

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
elsewhere.

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