summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
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
2008-02-03Fixed #6495 -- Fixed debug traceback HTML output in the rare case when there ↵Malcolm Tredinnick
is no source line to display. Thanks, Bastian Kleineidam. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-23Corrected a typo in the debug page -- 'Share this traceback on a public Web ↵Adrian Holovaty
site' git-svn-id: http://code.djangoproject.com/svn/django/trunk@6977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11Fixed copy-and-paste view of error page to not indent the first line of ↵Gary Wilson Jr
installed apps and middleware. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11Fixed imports to adhere to django coding style.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11Fixed #6158 -- Display PYTHONPATH on the debug error page. Thanks, annacoder.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Changed wording of post-to-dpaste link based on a suggestion from Mordy OvitsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Changed 'Send to DPaste' link (from [6820]) on debug page to wording that's ↵Adrian Holovaty
much less inside-basebally. Also changed it so that the button only shows up after clicking 'Switch to copy-and-paste view', so people know what they're getting into. Also unconverted some XHTML tags, as the page uses an HTML 4.01 doctype. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #2437, #6091 -- Added "paste to dpaste" button to debug page. Thanks,Malcolm Tredinnick
Christian Metts, Erik Karulf, Simon Greenhill, dummy@habmalnefrage.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-20Fixed #5974 -- Added autoescaping for source code lines and local variables inMalcolm Tredinnick
technical debug page. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick
controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed #5712 -- Added more robustness to source code display in the debug ↵Malcolm Tredinnick
view. Our behaviour is a bit more PEP 263 compliant now, too. Thanks, Thomas Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6585 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-12Fixed #5046 -- Added 'Unicode error hint' section to debug page in the case ↵Adrian Holovaty
of a UnicodeError. Thanks, Thomas Guttler git-svn-id: http://code.djangoproject.com/svn/django/trunk@5862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22Backed out the changes in [5482] for a bit whilst some more investigation intoMalcolm Tredinnick
side-effects is done. Refs #4565. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4565 -- Changed template rendering to use iterators, rather thanMalcolm Tredinnick
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10Fixed #4335 -- Added Python executable binary path and version to debug output.Malcolm Tredinnick
Thanks, Pete Crosier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21Fixed #3734 -- Added support for import hooks to the debugging tracebackMalcolm Tredinnick
output. Also respect hidden traceback frames. Thanks to Armin Ronacher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09Fixed #3942 -- Fixed potential confusion on debug 404 page by stripping ↵Adrian Holovaty
initial slash from the display of the current URL. Thanks, Collin Grady git-svn-id: http://code.djangoproject.com/svn/django/trunk@4959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixed #2968 -- Changed arguments to __import__ to use empty dictionary ↵Adrian Holovaty
instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-24Avoid displaying the profanities list in the debug output. Makes it a bit moreMalcolm Tredinnick
"safe for work". git-svn-id: http://code.djangoproject.com/svn/django/trunk@3813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-05Added some escaping of request.path to django/views/debug.py. Thanks, Simon ↵Adrian Holovaty
Greenhill git-svn-id: http://code.djangoproject.com/svn/django/trunk@3722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04Changed template names from [3707] to remove initial caps, to fit our style.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-02Refs #2333 - Re-added the template rendering signal for testing purposes; ↵Russell Keith-Magee
however, the signal is not available during normal operation. It is only added as part of an instrumentation step that occurs during test framework setup. Previous attempt (r3659) was reverted (r3666) due to performance concerns. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27Reverted [3659], the 'name' field on Template objects and the signal emitted ↵Adrian Holovaty
whenever a template is rendered. Refs #2333. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27Refs #2333 - Added a signal that is emitted whenever a template is rendered, ↵Russell Keith-Magee
and added a 'name' field to Template to allow easy identification of templates. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Second half of little cleanup tweaks suggested by pyflakes.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed #2092: added a "is_secure()" method to HttpRequest which correctly ↵Jacob Kaplan-Moss
handles the subtleties of mod_python's interaction with os.environ. This one's been bugging me for about a *year*, so many many thanks to k.shaposhnikov@gmail.com for figuring it out, and Tim Shaffer for pointing out this ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-14Fixed #2153 -- display debugging template even if no stack frame is found.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-06Fixed #1785 -- debug view no longer assumes _get_lines_from_file returns ↵Adrian Holovaty
None. Thanks, django@binaryfeed.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@2864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02Fixed #1059 -- Fixed off-by-one line number in heading of debug error pages.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28Fixed #1420 -- Added copy-and-paste (pastebin-friendly) toggle for debug ↵Adrian Holovaty
view. Thanks, jpaulofarias git-svn-id: http://code.djangoproject.com/svn/django/trunk@2444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27Fixed #1059 -- Fixed line numbers off-by-one error in debug outputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19Fixed a bunch of errors detected by pychecker -- unneeded imports and ↵Adrian Holovaty
shadows of builtin variable names git-svn-id: http://code.djangoproject.com/svn/django/trunk@2058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05Changed debug error view to escape the exception value, so that values in ↵Adrian Holovaty
angle brackets aren't hidden by browsers git-svn-id: http://code.djangoproject.com/svn/django/trunk@1825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #998 -- Fixed edge-case bug in debug view for templates with only one ↵Adrian Holovaty
line. Thanks, andy@jadedplanet.net git-svn-id: http://code.djangoproject.com/svn/django/trunk@1578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-07Added 'It worked' page, in a empty_urlconf() view in views/debug.py. It's ↵Adrian Holovaty
called if the URLconf is empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06Debug 400 page now displays special error message if your URLconf is empty.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1552 bcc190cf-cafb-0310-a4f2-bffc1f526a37