Opened 15 years ago

Closed 14 years ago

Last modified 13 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: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 14 years ago.
Copy warnoptions before spawning child

Download all attachments as: .zip

Change History (7)

comment:1 by Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

by Claude Paroz, 14 years ago

Attachment: copy_warnoptions.diff added

Copy warnoptions before spawning child

comment:2 by Claude Paroz, 14 years ago

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 by Brian Neal, 14 years ago

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 by Russell Keith-Magee, 14 years ago

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 by Russell Keith-Magee, 14 years ago

(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 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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