Move signal registering to AppConfig's ready from startup.py
This commit is contained in:
10
common/djangoapps/course_modes/apps.py
Normal file
10
common/djangoapps/course_modes/apps.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CourseModesConfig(AppConfig):
|
||||
name = 'course_modes'
|
||||
verbose_name = "Course Modes"
|
||||
|
||||
def ready(self):
|
||||
import course_modes.signals # pylint: disable=unused-import
|
||||
@@ -1,4 +0,0 @@
|
||||
"""
|
||||
Setup the signals on startup.
|
||||
"""
|
||||
import course_modes.signals # pylint: disable=unused-import
|
||||
Reference in New Issue
Block a user