Code

Opened 4 years ago

Closed 4 years ago

#12863 closed (fixed)

POST data example broken by CSRF middleware

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

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

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.