MCPcopy
hub / github.com/django/django / get_traceback_html

Method get_traceback_html

django/views/debug.py:431–436  ·  view source on GitHub ↗

Return HTML version of debug 500 HTTP error page.

(self)

Source from the content-addressed store, hash-verified

429 return c
430
431 def get_traceback_html(self):
432 """Return HTML version of debug 500 HTTP error page."""
433 with self.html_template_path.open(encoding="utf-8") as fh:
434 t = DEBUG_ENGINE.from_string(fh.read())
435 c = Context(self.get_traceback_data(), use_l10n=False)
436 return t.render(c)
437
438 def get_traceback_text(self):
439 """Return plain text version of debug 500 HTTP error page."""

Calls 6

get_traceback_dataMethod · 0.95
ContextClass · 0.90
openMethod · 0.45
from_stringMethod · 0.45
readMethod · 0.45
renderMethod · 0.45