MCPcopy
hub / github.com/django/django / is_installed

Method is_installed

django/apps/registry.py:242–249  ·  view source on GitHub ↗

Check whether an application with this name exists in the registry. app_name is the full name of the app e.g. 'django.contrib.admin'.

(self, app_name)

Source from the content-addressed store, hash-verified

240 self.clear_cache()
241
242 def is_installed(self, app_name):
243 """
244 Check whether an application with this name exists in the registry.
245
246 app_name is the full name of the app e.g. 'django.contrib.admin'.
247 """
248 self.check_apps_ready()
249 return any(ac.name == app_name for ac in self.app_configs.values())
250
251 def get_containing_app_config(self, object_name):
252 """

Callers 11

get_current_siteFunction · 0.80
itemsMethod · 0.80
get_domainMethod · 0.80
__init__Method · 0.80
shortcutFunction · 0.80
check_dependenciesFunction · 0.80
handle_simpleMethod · 0.80
test_is_installedMethod · 0.80
SitemapTestsBaseClass · 0.80

Calls 2

check_apps_readyMethod · 0.95
valuesMethod · 0.45

Tested by 2

test_is_installedMethod · 0.64