MCPcopy
hub / github.com/django/django / _get_raw_insecure_uri

Method _get_raw_insecure_uri

django/views/debug.py:338–347  ·  view source on GitHub ↗

Return an absolute URI from variables available in this request. Skip allowed hosts protection, so may return insecure URI.

(self)

Source from the content-addressed store, hash-verified

336 self.postmortem = None
337
338 def _get_raw_insecure_uri(self):
339 """
340 Return an absolute URI from variables available in this request. Skip
341 allowed hosts protection, so may return insecure URI.
342 """
343 return "{scheme}://{host}{path}".format(
344 scheme=self.request.scheme,
345 host=self.request._get_raw_host(),
346 path=self.request.get_full_path(),
347 )
348
349 def get_traceback_data(self):
350 """Return a dictionary containing traceback information."""

Callers 2

get_traceback_dataMethod · 0.95

Calls 3

_get_raw_hostMethod · 0.80
get_full_pathMethod · 0.80
formatMethod · 0.45

Tested by 1