Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#13062 closed (fixed)

Can't see PendingDeprecationWarnings in the development server on Linux

Reported by: gremmie 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 claudep 5 years ago.
Copy warnoptions before spawning child

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 5 years ago by claudep

Copy warnoptions before spawning child

comment:2 Changed 5 years ago by claudep

  • 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 4 years ago by gremmie

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 4 years ago by russellm

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

(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 4 years ago by russellm

(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 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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