MCPcopy
hub / github.com/django/django / get_traceback_text

Method get_traceback_text

django/views/debug.py:438–443  ·  view source on GitHub ↗

Return plain text version of debug 500 HTTP error page.

(self)

Source from the content-addressed store, hash-verified

436 return t.render(c)
437
438 def get_traceback_text(self):
439 """Return plain text version of debug 500 HTTP error page."""
440 with self.text_template_path.open(encoding="utf-8") as fh:
441 t = DEBUG_ENGINE.from_string(fh.read())
442 c = Context(self.get_traceback_data(), autoescape=False, use_l10n=False)
443 return t.render(c)
444
445 def _get_source(self, filename, loader, module_name):
446 source = None

Calls 6

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