Files
edx-platform/lms/djangoapps/certificates/apps.py
2019-12-30 12:25:38 -05:00

29 lines
802 B
Python

"""
Certificates 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 CertificatesConfig(AppConfig):
"""
Application Configuration for Certificates.
"""
name = u'lms.djangoapps.certificates'
def ready(self):
"""
Connect handlers to signals.
"""
# Can't import models at module level in AppConfigs, and models get
# included from the signal handlers
from . import signals # pylint: disable=unused-variable
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from .services import CertificateService
set_runtime_service('certificates', CertificateService())