Files
edx-platform/openedx/core/djangoapps/signals/apps.py
Gregory Martin a82b73ed0c fix
2017-07-17 17:08:17 -04:00

21 lines
496 B
Python

"""
Signal handlers are registered at startup here.
"""
from django.apps import AppConfig
class SignalConfig(AppConfig):
"""
Application Configuration for Signals.
"""
name = u'openedx.core.djangoapps.signals'
def ready(self):
"""
Connect handlers.
"""
# Can't import models at module level in AppConfigs, and models get
# included from the signal handlers
from . import signals, handlers # pylint: disable=unused-variable