Move bookmarks startup.py over to AppConfig::ready

This commit is contained in:
John Eskew
2017-11-02 16:39:30 -04:00
parent a2cc679b25
commit 3f99fe4c1b
4 changed files with 18 additions and 7 deletions

View File

@@ -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',

View File

@@ -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',

View 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

View File

@@ -1,5 +0,0 @@
"""
Setup the signals on startup.
"""
from . import signals # pylint: disable=unused-import