from django.apps import AppConfig
[docs]
class MatchingConfig(AppConfig):
default_auto_field = 'django_mongodb_backend.fields.ObjectIdAutoField'
name = 'matching'
[docs]
def ready(self):
"""
Import signals when app loads.
Note: Added `noqa` so linter won't remove the function.
https://docs.djangoproject.com/en/dev/ref/applications/#django.apps.AppConfig.ready
https://stackoverflow.com/questions/58362534/i-m-confused-about-the-ready-function-used-inside-app-py
"""
import matching.signals # noqa: F401