Merge pull request #16507 from edx/jeskew/more_apps_signals

Move ccxcon, credit, and programs Django apps to AppConfig standard.
This commit is contained in:
John Eskew
2017-11-09 09:26:38 -05:00
committed by GitHub
6 changed files with 17 additions and 8 deletions

View File

@@ -2254,7 +2254,7 @@ INSTALLED_APPS = [
'xblock_django',
# programs support
'openedx.core.djangoapps.programs',
'openedx.core.djangoapps.programs.apps.ProgramsConfig',
# Catalog integration
'openedx.core.djangoapps.catalog',

View File

@@ -10,4 +10,4 @@ class CCXConnectorConfig(AppConfig):
verbose_name = "CCX Connector"
def ready(self):
import openedx.core.djangoapps.ccxcon.signals
from . import signals

View File

@@ -1,3 +0,0 @@
""" Register signal handlers """
from . import signals

View File

@@ -14,6 +14,7 @@ class CreditConfig(AppConfig):
name = u'openedx.core.djangoapps.credit'
def ready(self):
from . import signals
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from .services import CreditService
set_runtime_service('credit', CreditService())

View File

@@ -8,6 +8,3 @@ if and only if the service is deployed in the Open edX installation.
To ensure maximum separation of concerns, and a minimum of interdependencies,
this package should be kept small, thin, and stateless.
"""
# Register signal handlers
from . import signals

View File

@@ -0,0 +1,14 @@
"""
Programs Configuration
"""
from django.apps import AppConfig
class ProgramsConfig(AppConfig):
"""
Default configuration for the "openedx.core.djangoapps.programs" Django application.
"""
name = u'openedx.core.djangoapps.programs'
def ready(self):
from . import signals