PLAT-1773 Delegate edx-proctoring service registration to app ready methods

This commit is contained in:
Jeremy Bowman
2017-10-31 18:19:06 -04:00
parent b57f144724
commit 2de2e3027d
6 changed files with 46 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
"""
Credit Application Configuration
"""
from django.apps import AppConfig
from django.conf import settings
from edx_proctoring.runtime import set_runtime_service
class CreditConfig(AppConfig):
"""
Default configuration for the "openedx.core.djangoapps.credit" Django application.
"""
name = u'openedx.core.djangoapps.credit'
def ready(self):
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from .services import CreditService
set_runtime_service('credit', CreditService())