Register block_structure djangoapp.

TNL-5274
This commit is contained in:
J. Cliff Dyer
2016-08-31 20:34:00 +00:00
parent 79421a2c94
commit 1371739f45
5 changed files with 46 additions and 7 deletions

View File

@@ -1,5 +0,0 @@
"""
Setup the signals on startup.
"""
import openedx.core.djangoapps.content.course_structures.signals
import openedx.core.djangoapps.content.block_structure.signals

View File

@@ -0,0 +1,23 @@
"""
Configuration for block_structure djangoapp
"""
from django.apps import AppConfig
class BlockStructureConfig(AppConfig):
"""
block_structure django app.
"""
name = u'openedx.core.djangoapps.content.block_structure'
def ready(self):
"""
Define tasks to perform at app loading time
* Connect signal handlers
* Register celery tasks
These happen at import time. Hence the unused imports
"""
from . import signals, tasks # pylint: disable=unused-variable

View File

@@ -0,0 +1,19 @@
"""
Django Application Configuration for course_structures app.
"""
from django.apps import AppConfig
class CourseStructuresConfig(AppConfig):
"""
Custom AppConfig for openedx.core.djangoapps.content.course_structures
"""
name = u'openedx.core.djangoapps.content.course_structures'
def ready(self):
"""
Define tasks to perform at app loading time:
* Connect signal handlers
"""
from . import signals # pylint: disable=unused-variable