Coverage for website/facedetection/apps.py: 100.00%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2025-08-14 10:31 +0000

1from django.apps import AppConfig 

2from django.urls import reverse 

3from django.utils.translation import gettext_lazy as _ 

4 

5 

6class FaceDetectionConfig(AppConfig): 

7 default_auto_field = "django.db.models.BigAutoField" 

8 name = "facedetection" 

9 verbose_name = _("Face detection") 

10 

11 def user_menu_items(self): 

12 return { 

13 "items": [ 

14 { 

15 "section": "profile", 

16 "title": "Your photos", 

17 "url": reverse("facedetection:your-photos"), 

18 "key": 2, 

19 }, 

20 ], 

21 } 

22 

23 def ready(self): 

24 """Register signals when the app is ready.""" 

25 from . import signals # noqa: F401