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

1import logging 

2 

3from django.apps import AppConfig 

4from django.conf import settings 

5 

6logger = logging.getLogger(__name__) 

7 

8 

9class MetainfoConfig(AppConfig): 

10 default_auto_field = "django.db.models.AutoField" 

11 name = "apis_core.apis_metainfo" 

12 

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 )