Code

Opened 2 years ago

Closed 2 years ago

#17395 closed New feature (wontfix)

runserver should print POST parameters

Reported by: RoySmith Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When you run "manage.py runserver", it prints all the GET and POST requests it gets. It would be useful for application debugging if it printed the POST parameters as well.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

POST data can be large (think uploaded files), and it's usually not included in server logs.

Typical debug techniques include:

  • adding a print request.POST statement in the view function you're debugging,
  • adding an import pdb; pdb.set_trace() statement in the code you're debugging,
  • using the Django debug toolbar, which displays lots of things, including POST data.

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.