Files
edx-platform/openedx/core/djangoapps/enrollments/apps.py
2021-01-13 16:45:40 -05:00

27 lines
632 B
Python

"""
Enrollments Application Configuration
Signal handlers are connected here.
"""
from django.apps import AppConfig
from django.conf import settings
from edx_proctoring.runtime import set_runtime_service
class EnrollmentsConfig(AppConfig):
"""
Application Configuration for Enrollments.
"""
name = u'openedx.core.djangoapps.enrollments'
def ready(self):
"""
Connect handlers to fetch enrollments.
"""
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from .services import EnrollmentsService
set_runtime_service('enrollments', EnrollmentsService())