MAKENTNU/web

View on GitHub
src/groups/apps.py

Summary

Maintainability
A
40 mins
Test Coverage
from django.apps import AppConfig


class GroupsConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'groups'

    def ready(self):
        # Importing models (which is done in the `signals` module) should not be done in the global scope,
        # as it would have caused an `AppRegistryNotReady` error
        from . import signals

        # Register / connect to the signals here when the app starts
        signals.connect()