Commit 09bd0244 by John Eskew

Move ccxcon, credit, and programs Django apps to AppConfig standard.

parent 319aa877
...@@ -2251,7 +2251,7 @@ INSTALLED_APPS = [ ...@@ -2251,7 +2251,7 @@ INSTALLED_APPS = [
'xblock_django', 'xblock_django',
# programs support # programs support
'openedx.core.djangoapps.programs', 'openedx.core.djangoapps.programs.apps.ProgramsConfig',
# Catalog integration # Catalog integration
'openedx.core.djangoapps.catalog', 'openedx.core.djangoapps.catalog',
......
...@@ -10,4 +10,4 @@ class CCXConnectorConfig(AppConfig): ...@@ -10,4 +10,4 @@ class CCXConnectorConfig(AppConfig):
verbose_name = "CCX Connector" verbose_name = "CCX Connector"
def ready(self): def ready(self):
import openedx.core.djangoapps.ccxcon.signals from . import signals
""" Register signal handlers """
from . import signals
...@@ -14,6 +14,7 @@ class CreditConfig(AppConfig): ...@@ -14,6 +14,7 @@ class CreditConfig(AppConfig):
name = u'openedx.core.djangoapps.credit' name = u'openedx.core.djangoapps.credit'
def ready(self): def ready(self):
from . import signals
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'): if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from .services import CreditService from .services import CreditService
set_runtime_service('credit', CreditService()) set_runtime_service('credit', CreditService())
...@@ -8,6 +8,3 @@ if and only if the service is deployed in the Open edX installation. ...@@ -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, To ensure maximum separation of concerns, and a minimum of interdependencies,
this package should be kept small, thin, and stateless. this package should be kept small, thin, and stateless.
""" """
# Register signal handlers
from . import signals
"""
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment