MCPcopy
hub / github.com/django/django / _setup

Method _setup

django/contrib/admin/sites.py:609–611  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

607
608class DefaultAdminSite(LazyObject):
609 def _setup(self):
610 AdminSiteClass = import_string(apps.get_app_config("admin").default_site)
611 self._wrapped = AdminSiteClass()
612
613 def __repr__(self):
614 return repr(self._wrapped)

Callers

nothing calls this directly

Calls 2

import_stringFunction · 0.90
get_app_configMethod · 0.80

Tested by

no test coverage detected