From 4b95abb7158c20503e231648e3d346c13ccc5b73 Mon Sep 17 00:00:00 2001 From: John Eskew Date: Thu, 21 Sep 2017 11:30:07 -0400 Subject: [PATCH] Make an AppConfig to register ccxcon signals. --- openedx/core/djangoapps/ccxcon/__init__.py | 3 ++- openedx/core/djangoapps/ccxcon/apps.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 openedx/core/djangoapps/ccxcon/apps.py diff --git a/openedx/core/djangoapps/ccxcon/__init__.py b/openedx/core/djangoapps/ccxcon/__init__.py index 6c2cbb1442..9a97524877 100644 --- a/openedx/core/djangoapps/ccxcon/__init__.py +++ b/openedx/core/djangoapps/ccxcon/__init__.py @@ -6,4 +6,5 @@ that is used to interact with the CCX and their master courses. The ccxcon app needs to be placed in `openedx.core.djangoapps` because it will be used both in CMS and LMS. """ -import openedx.core.djangoapps.ccxcon.signals + +default_app_config = 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig' diff --git a/openedx/core/djangoapps/ccxcon/apps.py b/openedx/core/djangoapps/ccxcon/apps.py new file mode 100644 index 0000000000..460e87392b --- /dev/null +++ b/openedx/core/djangoapps/ccxcon/apps.py @@ -0,0 +1,13 @@ +""" +Configuration for CCX connector +""" + +from django.apps import AppConfig + + +class CCXConnectorConfig(AppConfig): + name = 'openedx.core.djangoapps.ccxcon' + verbose_name = "CCX Connector" + + def ready(self): + import openedx.core.djangoapps.ccxcon.signals