Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/views/debug.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25037 -- Added request.user to the debug view.John Moses2015-10-051-0/+7
|
* Removed unused views.debug.linebreak_iter() function.Tim Graham2015-09-241-9/+0
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-5/+7
|
* Fixed #25099 -- Fixed crash in AdminEmailHandler on ↵Vlastimil Zíma2015-09-041-3/+3
| | | | DisallowedHost.
* Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham2015-08-081-7/+7
|
* Fixed #25147 -- Fixed debug view copy-paste/interactive ↵Tim Graham2015-07-201-1/+1
| | | | | | | toggle. The whitespace added in 1101467ce0756272a54f4c7bc65c4c335a94111b broke the initial comparison.
* Fixed #25099 -- Cleaned up HttpRequest representations ↵Vlastimil Zíma2015-07-141-16/+7
| | | | in error reporting.
* Improved whitespace in debug templates.Tim Graham2015-07-141-24/+26
| | | | | Removed extra blank lines in the template text debug template, and prevented overindentation in the HTML debug template.
* Ref #23643 -- Added plain text report of exception chain.Tomáš Ehrlich2015-06-011-4/+9
|
* Refs #23643 -- Fixed debug view regression on Python 2.Luca Ferroni2015-05-291-2/+4
| | | | Thanks Tomáš Ehrlich for help with the patch.
* Fixed #24119, #24120 -- Formalized debug integration for ↵Preston Timmons2015-05-071-23/+5
| | | | template backends.
* Improved display of template loader postmortem on debug ↵Preston Timmons2015-04-221-73/+57
| | | | | | | | | page. This now works for multiple Django engines and recursive loaders. Support for non-Django engines is still pending. Refs #15053.
* Removed cases of six.iter* wrapped in a list()Curtis Maloney2015-04-181-1/+1
| | | | | There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
* Fixed #24440 -- Added padding to debug view stacktrace ↵andy matthews2015-03-231-2/+2
| | | | lines.
* Cleaned up the template debug implementation.Preston Timmons2015-03-201-48/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
* Fixes #23643 -- Added chained exception details to debug ↵Tomáš Ehrlich2015-03-141-3/+52
| | | | view.
* Fixed #24455 -- Fixed crash in debug view with lazy objectsBas Peschier2015-03-101-1/+9
|
* Fixed #24399 -- Made filesystem loaders use more ↵Preston Timmons2015-03-031-4/+0
| | | | specific exceptions.
* Fixed a crash of the debug page.Aymeric Augustin2015-02-101-3/+2
| | | | | | | | | | During the autumn DST change, the template engine would fail to convert the naive representation of now when USE_TZ = True. Passing now in UTC eliminates the issue. Thanks mbertheau and tricoder42. Refs #23714.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-7/+6
|
* Caught all exceptions raised by Engine.get_default().Aymeric Augustin2015-02-051-2/+5
| | | | | | In addition to ImproperlyConfigured, Engine.get_default() may also raise ImportError or other exceptions. It's better to catch all exceptions in places where the default engine isn't strictly required.
* Made debug views not crash when there isn't a default ↵Aymeric Augustin2015-01-121-19/+34
| | | | template engine.
* Deprecated TEMPLATE_LOADERS.Aymeric Augustin2014-12-281-3/+3
|
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Removed direct references to template-related settings.Aymeric Augustin2014-11-231-3/+5
|
* Moved template loaders management in Engine.Aymeric Augustin2014-11-231-2/+3
| | | | | | | | | | | Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
* Simplified caching of the default exception reporter filter.Aymeric Augustin2014-11-191-11/+8
| | | | | Also simplified the logic under the assumption that a false-ish object won't have an exception_reporter_filter attribute.
* Refactored getting the list of template loaders.Aymeric Augustin2014-11-161-6/+8
| | | | | This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-19/+55
| | | | refs #23395.
* Fixed #20368 -- Made TECHNICAL_500 more robust against ↵Walter Doekes2014-08-131-1/+11
| | | | | | bad input. This limits large variables and avoids non-utf-8 in the TECHNICAL_500 output.
* Fixed code to solve #23070 problemHiroki KIYOHARA2014-07-261-1/+15
| | | | | | | | Added a class to wrap callable in settings: * Not to call in the debug page (#21345). * Not to break the debug page if the callable forbidding to set attributes (#23070). Thanks @bmispelon for giving me some advice.
* Fixed #22756 -- Added view name to technical 404 ↵Julia Matsieva2014-06-301-1/+26
| | | | | | template if Http404 is raised. Thanks Keryn Knight for the suggestion.
* Fixed #21668 -- Return detailed error page when ↵Anubhav Joshi2014-06-241-7/+7
| | | | | | | | SuspiciousOperation is raised and DEBUG=True Thanks GDorn and gox21 for report. Thanks Tim Graham for idea and review.
* Prevented markup escape in 'Welcome to Django' pageClaude Paroz2014-06-121-2/+2
| | | | | Fixes a regression introduced in 5f24cf9705. Refs #22635. Thanks A.J. May for spotting the regression.
* Fixed #22635 -- Made "It worked!" page localizable.Markus Amalthea Magnuson2014-05-191-8/+17
|
* Fixed #22306 -- Deprecated future versions of cycle and ↵Maxime Turcotte2014-03-281-1/+1
| | | | firstof template tags.
* Removed contrib.comments per deprecation timeline.Tim Graham2014-03-211-1/+1
|
* Corrected a pair of flake8 violationsAlex Gaynor2014-02-151-1/+1
|
* Improved fix for #18373 -- backward compatibilityGrzegorz Nosek2014-02-151-4/+7
| | | | | | Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
* Fixed some flake8 errors from recent commits.Tim Graham2014-02-151-1/+1
|
* Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek2014-02-151-3/+5
| | | | | | | | | | | When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Used app_label instead of appname.Aymeric Augustin2013-12-281-1/+1
| | | | | | | The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
* Fixed #21530 -- Prevent AttributeError in default ↵Baptiste Mispelon2013-12-071-1/+1
| | | | | | | URLconf detection code. Thanks to @dmyerscoug for the report and original patch and to @alasdairnicol for the added tests.
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-3/+3
|
* Fixed #21443 -- Cannot show debug info on PY3's importlibBouke Haarsma2013-11-221-1/+4
| | | | Thanks productions@zaziork.co.uk for the review.
* Fixed all E226 violationsAlex Gaynor2013-11-031-4/+4
|
* Correct flake8 E302 violationsRay Ashman Jr2013-11-031-0/+9
|
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* Fixed #21345: Don't evaluate callable settings in the ↵Baptiste Mispelon2013-10-301-0/+4
| | | | | | debug page. Thanks to crass for the report.