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:
@@ -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',
|
||||
|
||||
@@ -10,4 +10,4 @@ class CCXConnectorConfig(AppConfig):
|
||||
verbose_name = "CCX Connector"
|
||||
|
||||
def ready(self):
|
||||
import openedx.core.djangoapps.ccxcon.signals
|
||||
from . import signals
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
""" Register signal handlers """
|
||||
|
||||
from . import signals
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
14
openedx/core/djangoapps/programs/apps.py
Normal file
14
openedx/core/djangoapps/programs/apps.py
Normal 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
|
||||
Reference in New Issue
Block a user