Coverage for apis_core/apis_metainfo/apps.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
1import logging
3from django.apps import AppConfig
4from django.conf import settings
6logger = logging.getLogger(__name__)
9class MetainfoConfig(AppConfig):
10 default_auto_field = "django.db.models.AutoField"
11 name = "apis_core.apis_metainfo"
13 def ready(self):
14 if getattr(settings, "APIS_BASE_URI", None) is None:
15 logger.warning(
16 "You should set the APIS_BASE_URI setting - we are using https://example.org as a fallback!"
17 )