Co-authored-by: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com> Co-authored-by: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com>
26 lines
630 B
Python
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())
|