Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#13062 closed (fixed)

Can't see PendingDeprecationWarnings in the development server on Linux

Reported by: Brian Neal Owned by: nobody
Component: django-admin.py runserver Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When running

$ python -Wall manage.py runserver

PendingDeprecationWarnings are not seen in the dev. server output unless you use the --noreload option on Ubuntu. For reference, see this thread on the user's mailing list. Karen Tracey has reported in that thread that this does seem to work as expected under Windows (no --reload is needed there).

I can try working up a patch if anyone more experienced can point me in the right direction. Thanks.

Attachments (1)

copy_warnoptions.diff (512 bytes) - added by Claude Paroz 6 years ago.
Copy warnoptions before spawning child

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 years ago by Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Changed 6 years ago by Claude Paroz

Attachment: copy_warnoptions.diff added

Copy warnoptions before spawning child

comment:2 Changed 6 years ago by Claude Paroz

Has patch: set

I absolutely don't know if this is the right fix, but at least the attached patch works on my system. Someone on Windows could check if it doesn't break things.

comment:3 Changed 6 years ago by Brian Neal

I can confirm that this patch fixed the problem for me on Ubuntu; I can now see PendingDeprecationWarnings when running the dev server.

comment:4 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [15233]) Fixed #13062 -- Ensure that runserver exposes all warnings requested at the command line. Thanks to gremmie for the report, and claudep for the patch.

comment:5 Changed 6 years ago by Russell Keith-Magee

(In [15234]) [1.2.X] Fixed #13062 -- Ensure that runserver exposes all warnings requested at the command line. Thanks to gremmie for the report, and claudep for the patch.

Backport of r15233 from trunk.

comment:6 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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