Files
edx-platform/openedx/core/djangoapps/enrollments/apps.py
2021-03-18 18:38:20 +05:00

26 lines
630 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 = '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())