MCPcopy
hub / github.com/django/django / index

Method index

django/contrib/admin/sites.py:557–576  ·  view source on GitHub ↗

Display the main admin index page, which lists all of the installed apps that have been registered in this site.

(self, request, extra_context=None)

Source from the content-addressed store, hash-verified

555 return app_list
556
557 def index(self, request, extra_context=None):
558 """
559 Display the main admin index page, which lists all of the installed
560 apps that have been registered in this site.
561 """
562 app_list = self.get_app_list(request)
563
564 context = {
565 **self.each_context(request),
566 "title": self.index_title,
567 "subtitle": None,
568 "app_list": app_list,
569 **(extra_context or {}),
570 }
571
572 request.current_app = self.name
573
574 return TemplateResponse(
575 request, self.index_template or "admin/index.html", context
576 )
577
578 def app_index(self, request, app_label, extra_context=None):
579 app_list = self.get_app_list(request, app_label)

Callers 15

has_module_permsMethod · 0.45
ahas_module_permsMethod · 0.45
result_headersFunction · 0.45
trim_punctuationMethod · 0.45
parse_http_dateFunction · 0.45
_mask_cipher_secretFunction · 0.45
_unmask_cipher_tokenFunction · 0.45
get_preferred_typeMethod · 0.45
b62_decodeFunction · 0.45
resolveMethod · 0.45
handleMethod · 0.45
datetime_trunc_sqlMethod · 0.45

Calls 3

get_app_listMethod · 0.95
each_contextMethod · 0.95
TemplateResponseClass · 0.90

Tested by

no test coverage detected