Files
edx-platform/lms/djangoapps/certificates/apps.py
adeelehsan 1b227232c5 Python3 update
INCR-471
2019-06-25 15:47:00 +05:00

30 lines
841 B
Python

"""
Certificates Application Configuration
Signal handlers are connected here.
"""
from __future__ import absolute_import
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())