Move bookmarks startup.py over to AppConfig::ready
This commit is contained in:
@@ -939,7 +939,7 @@ INSTALLED_APPS = [
|
||||
'openedx.core.djangoapps.service_status',
|
||||
|
||||
# Bookmarks
|
||||
'openedx.core.djangoapps.bookmarks',
|
||||
'openedx.core.djangoapps.bookmarks.apps.BookmarksConfig',
|
||||
|
||||
# Video module configs (This will be moved to Video once it becomes an XBlock)
|
||||
'openedx.core.djangoapps.video_config',
|
||||
|
||||
@@ -2076,7 +2076,7 @@ INSTALLED_APPS = [
|
||||
'openedx.core.djangoapps.video_config',
|
||||
|
||||
# Bookmarks
|
||||
'openedx.core.djangoapps.bookmarks',
|
||||
'openedx.core.djangoapps.bookmarks.apps.BookmarksConfig',
|
||||
|
||||
# Our courseware
|
||||
'courseware',
|
||||
|
||||
16
openedx/core/djangoapps/bookmarks/apps.py
Normal file
16
openedx/core/djangoapps/bookmarks/apps.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Configuration for bookmarks Django app
|
||||
"""
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BookmarksConfig(AppConfig):
|
||||
"""
|
||||
Configuration class for bookmarks Django app
|
||||
"""
|
||||
name = 'openedx.core.djangoapps.bookmarks'
|
||||
verbose_name = "Bookmarks"
|
||||
|
||||
def ready(self):
|
||||
# Register the signals handled by bookmarks.
|
||||
from . import signals
|
||||
@@ -1,5 +0,0 @@
|
||||
"""
|
||||
Setup the signals on startup.
|
||||
"""
|
||||
|
||||
from . import signals # pylint: disable=unused-import
|
||||
Reference in New Issue
Block a user