PB
И относительно нее указывается путь в installed_apps
Size: a a a
PB
PB
PB
AK
PB
AK
from django.apps import AppConfig
class PostsConfig(AppConfig):
name = 'posts'
AK
PB
AK
if getattr(meta, 'app_label', None) is None:
if app_config is None:
if not abstract:
raise RuntimeError(
"Model class %s.%s doesn't declare an explicit "
"app_label and isn't in an application in "
"INSTALLED_APPS." % (module, name)
)
Z
Z
A
Z
Z
Z
PB
A
A
dp
A