Source code for apis_core.apis_metainfo.apps
import logging
from django.apps import AppConfig
from django.conf import settings
logger = logging.getLogger(__name__)
[docs]
class MetainfoConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "apis_core.apis_metainfo"
[docs]
def ready(self):
if getattr(settings, "APIS_BASE_URI", None) is None:
logger.warning(
"You should set the APIS_BASE_URI setting - we are using https://example.org as a fallback!"
)