summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
2012-02-09Fixed #17460 -- Extended the HIDDEN_SETTINGS constant in with a few more ↵Jannis Leidel
sensible names of settings to hide in the debug view. Many thanks to chomik, lpiatek and tomaszrybak. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-01Fixed #17486 -- Updated the welcome page of new projects to reflect the new ↵Aymeric Augustin
structure created by startproject. Thanks aashu_dwivedi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Fixed super-edge-case bug in debug view where exc_value.args was empty. I ↵Adrian Holovaty
managed to trigger this in some template code git-svn-id: http://code.djangoproject.com/svn/django/trunk@17245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17Fixed various dodgy behavioursAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-02Fixed #10841 -- Switched response served when DEBUG=True and ↵Ramiro Morales
request.is_ajax() returns True (indicating request has been generated by a JS library) to a plain text version for easier debugging. Contents of this response are similar to its HTML counterpart modulo frame variables values in the Python traceback section. Thanks to Riz for the report, to SmileyChris for the patch and to Julien for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16770 -- Eliminated TemplateSyntaxError wrapping of exceptions. ↵Carl Meyer
Thanks to Justin Myles-Holmes for report and draft patch. Exceptions raised in templates were previously wrapped in TemplateSyntaxError (in TEMPLATE_DEBUG mode only) in order to provide template source details on the debug 500 page. The same debug information is now provided by annotating exceptions rather than wrapping them. This makes catching exceptions raised from templates more sane, as it's consistent in or out of DEBUG, and you can catch the specific exception(s) you care about rather than having to also catch TemplateSyntaxError and unwrap it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Replaced `has_key()` calls with `in` to ease Python 3 port. Thanks, Martin ↵Jannis Leidel
von Löwis. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-22Pre-formatted text wrapping change in technical debug page.Malcolm Tredinnick
In (typically rare) cases, a very long exception line can appear that requires horiztonal scrolling in the cut-and-paste exception layout box. To make this fractionally more readable, we pre-wrap the text now. Fixes #16331, based on a patch from Trinh Hai-Anh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-29Fixed #16531 -- Fixed various instances of "undefined name" issues. Thanks, ↵Jannis Leidel
Bruno Renié. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #16178 - Cleanup request classes' `__repr__()`Luke Plant
Thanks to julien for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #11834 -- Improved technical 500 stacktrace display.Idan Gazit
Thanks to buriy and Aleksandra for the implementation! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed #14614 - filtering of sensitive information in 500 error reports.Luke Plant
This adds a flexible mechanism for filtering what request/traceback information is shown in 500 error emails and logs. It also applies screening to some views known to be sensitive e.g. views that handle passwords. Thanks to oaylanc for the report and many thanks to Julien Phalip for the patch and the rest of the work on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-20Fixed case of DOCTYPE in 500 template, for the sake of consistency.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-20Switched to HTML5 doctype in all Django supplied templates.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Removed support code for deprecated module-based template loaders from debug ↵Ramiro Morales
view postmortem. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-14Fixed #15597: When formatting the debug page for inclusion in an e-mail, ↵Karen Tracey
suppress the note about "seeing this" because DEBUG is True. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed #14972 -- Ensure that the HTML email logger always produces useful ↵Russell Keith-Magee
output, regardless of whether it has been given an exception or a request. Thanks to jamstooks for the report, and bpeschier for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-29Fixed #15158 -- Fixed error introduced in r15252 in rendering of the ↵Ramiro Morales
template post morten section of the 500 error debug page with loaders other than the file system or application dir loaders. Refs #15122. Thanks gsf for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #15021 -- Corrected CSS for the layout of stack traces on the server ↵Russell Keith-Magee
error page. Thanks to EmilStenstrom for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Fixed #15122 -- Restored reporting of the template files tried in the ↵Ramiro Morales
texmplate loader post mortem section of the TemplateDoesNotExit 500 error debug page. Thanks rdrey for reporting this regression. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13Fixed #15025 - template debug fails if there's a callable local var that ↵Luke Plant
generates an exception Thanks to Tai Lee for the patch and report, also to Don Spaulding. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12Fixed #11990 -- Show the correct URLconf in the technical 404 template even ↵Jannis Leidel
if it was overridden, e.g. in a middleware. Thanks, mattbennett. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-06Fixed #10863 -- Added HTML support to mail_managers() and mail_admins(), and ↵Russell Keith-Magee
used this to provide more and prettier detail in error emails. Thanks to boxed for the suggestion, and to Rob Hudson and Brodie Rao for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-12Debug 404 page now displays names of URL patterns, if they exist.Malcolm Tredinnick
Thanks to Tobias McNulty for the patch. Fixed #9310. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11Display a repr-like result for safe-string local variables on the debug page.Malcolm Tredinnick
Fixed #7697. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Fixed #13624: added SIGNATURE to the list of settings to hide on debug pages.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-05Fixed #12083: Ensured generating debug 404 page won't raise a key error. ↵Karen Tracey
Thanks pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24Fixed #10216. Only try to gather template exception info if the exception is ↵Joseph Kocherhans
a Django TemplateSyntaxError. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24Fixed #12944. Added Django version to the main part of the debug page. ↵Joseph Kocherhans
Thanks, robhudson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-31Fixed #12744 -- Improved the settings cleansing process the work with ↵Russell Keith-Magee
dictionary settings that are keyed by non-strings. Thanks to minmax for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-31Fixed #12736 -- Fixed the debug page to hide passwords when they are in ↵Russell Keith-Magee
dictionary structures (like the new DATABASES setting). Thanks to Karen for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-14Fixed #6262 -- Added a cached template loader, and modified existing ↵Russell Keith-Magee
template loaders and tag to be cacheable. Thanks to Mike Malone for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-21Fixed #11512 -- Corrected unclosed tag in HTML on debug page. Thanks to ↵Russell Keith-Magee
rlaager for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12Fixed #9577 --Fixed URL display in the debug template.Malcolm Tredinnick
Patch from Thomas Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31Fixed #7529: added a FILES section to the debug view. As a bonus, we've now gotJacob Kaplan-Moss
the start of a suite of tests for the debug views. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-18Fixed #8193: all dynamic imports in Django are now done correctly. I know ↵Jacob Kaplan-Moss
this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #8287: the debug page now shows the actual requested URL even if ↵Jacob Kaplan-Moss
you've messed with request.path. Patch from Giuliani Vito Ivan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #6353: better handle unicode in exception reasons.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-17Fixed #8178: Another update to debug template to aid rendering of exception ↵Russell Keith-Magee
traces. Thanks to julianb for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #8178: Cleaned up the rendering of exceptions on the error template. ↵Russell Keith-Magee
Thanks to Marinho Brandão for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22Fixed #7848 -- Removed a bunch of code that wasn't contributing to society. ↵Adrian Holovaty
Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-15Fixed #6862 -- Refactored debug traceback extraction into an easy-to-use class.Malcolm Tredinnick
Aside from being a little easier to read and use, this means you could subclass a request/response handler class (from django.core.handlers) to add your own traceback extraction handling in non-DEBUG environments and reuse this code. Thanks, Ned Batchelder. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08Fixed #7649 -- Fixed incorrect line numbering in debug view in case of empty ↵Adrian Holovaty
spaces. Thanks, dusk git-svn-id: http://code.djangoproject.com/svn/django/trunk@7863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20Fixed #6486 -- Added local server time to the debug output page. Patch fromMalcolm Tredinnick
Bastian Kleineidam and Thomas Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #5935 -- the 'It worked' page is now served with a 200 status code, ↵Adrian Holovaty
not a 404. Thanks for bringing this up, Free Neuron git-svn-id: http://code.djangoproject.com/svn/django/trunk@7310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6494 -- Factored out the HTML debug output into a method of its own forMalcolm Tredinnick
reuse elsewhere. Thanks, Bastian Kleineidam. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03Fixed #6423 -- Don't fall in a hole in the debug screen if somebody raises ↵Malcolm Tredinnick
an old-fashioned string exception. Thanks, guettli. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03Fixed #6359 -- Fixed an oversight in the debug output: template loaders need ↵Malcolm Tredinnick
not have a get_source() method. Thanks, Guido van Rossum. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7063 bcc190cf-cafb-0310-a4f2-bffc1f526a37