MCPcopy
hub / github.com/django/django / app_model_error

Function app_model_error

django/core/checks/model_checks.py:135–141  ·  view source on GitHub ↗
(model_key)

Source from the content-addressed store, hash-verified

133 return operation, args, keywords
134
135 def app_model_error(model_key):
136 try:
137 apps.get_app_config(model_key[0])
138 model_error = "app '%s' doesn't provide model '%s'" % model_key
139 except LookupError:
140 model_error = "app '%s' isn't installed" % model_key[0]
141 return model_error
142
143 # Here are several functions which return CheckMessage instances for the
144 # most common usages of lazy operations throughout Django. These functions

Callers 3

field_errorFunction · 0.85
signal_connect_errorFunction · 0.85
default_errorFunction · 0.85

Calls 1

get_app_configMethod · 0.80

Tested by

no test coverage detected