Move verify_student signal registration to ready()
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
"""
|
||||||
|
Student Identity Verification App
|
||||||
|
"""
|
||||||
|
|||||||
19
lms/djangoapps/verify_student/apps.py
Normal file
19
lms/djangoapps/verify_student/apps.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
"""
|
||||||
|
Student Identity Verification Application Configuration
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class VerifyStudentConfig(AppConfig):
|
||||||
|
"""
|
||||||
|
Application Configuration for verify_student.
|
||||||
|
"""
|
||||||
|
name = 'lms.djangoapps.verify_student'
|
||||||
|
verbose_name = 'Student Identity Verification'
|
||||||
|
|
||||||
|
def ready(self):
|
||||||
|
"""
|
||||||
|
Connect signal handlers.
|
||||||
|
"""
|
||||||
|
from . import signals # pylint: disable=unused-variable
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
"""
|
|
||||||
Setup the signals on startup.
|
|
||||||
"""
|
|
||||||
import lms.djangoapps.verify_student.signals # pylint: disable=unused-import
|
|
||||||
@@ -2129,7 +2129,7 @@ INSTALLED_APPS = [
|
|||||||
'bulk_enroll',
|
'bulk_enroll',
|
||||||
|
|
||||||
# Student Identity Verification
|
# Student Identity Verification
|
||||||
'lms.djangoapps.verify_student',
|
'lms.djangoapps.verify_student.apps.VerifyStudentConfig',
|
||||||
|
|
||||||
# Dark-launching languages
|
# Dark-launching languages
|
||||||
'openedx.core.djangoapps.dark_lang',
|
'openedx.core.djangoapps.dark_lang',
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|
||||||
'lms.djangoapps.verify_student',
|
'lms.djangoapps.verify_student.apps.VerifyStudentConfig',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user