Configure application
- To configure an application, subclass django.apps.AppConfig and put the dotted path to that subclass in INSTALLED_APPS.
- When INSTALLED_APPS simply contains the dotted path to an application module, Django checks for a default_app_config variable in that module.
- If it’s defined, it’s the dotted path to the AppConfig subclass for that application.
- If there is no default_app_config, Django uses the base AppConfig class.
Комментариев нет:
Отправить комментарий