PLAT-1773 Delegate edx-proctoring service registration to app ready methods
This commit is contained in:
19
openedx/core/djangoapps/credit/apps.py
Normal file
19
openedx/core/djangoapps/credit/apps.py
Normal 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())
|
||||
Reference in New Issue
Block a user