python - Verbose deprecation warnings in Django -


after upgrading django 1.3 django 1.5 started see these deprecationwarnings during test run:

path_to_virtualenv/lib/python2.6/site-packages/django/http/request.py:193: deprecationwarning: httprequest.raw_post_data has been deprecated. use httprequest.body instead.

i've searched inside project raw_post_data , found nothing. not directly used in project. then, i've manually went through installed_apps , found raven module still uses raw_post_data , cause, but..

is possible see cause of deprecationwarning during test run? how make these warnings more verbose?

this taken a similar question.

you can use warnings modules raise error deprecationwarning.

temporarily add following snippet top of project's urls.py:

import warnings warnings.simplefilter('error', deprecationwarning) 

the deprecationwarning raise error, if debug=true you'll familiar yellow django error page full traceback.


Comments