diff --git a/colab/__init__.py b/colab/__init__.py index d13e951..e69de29 100644 --- a/colab/__init__.py +++ b/colab/__init__.py @@ -1,5 +0,0 @@ -from __future__ import absolute_import - -# This will make sure the app is always imported when -# Django starts so that shared_task will use this app. -from .celery import app as celery_app # noqa diff --git a/colab/home/__init__.py b/colab/home/__init__.py index e69de29..51c70d7 100644 --- a/colab/home/__init__.py +++ b/colab/home/__init__.py @@ -0,0 +1,3 @@ + + +default_app_config = 'colab.home.apps.HomeConfig' diff --git a/colab/home/apps.py b/colab/home/apps.py new file mode 100644 index 0000000..e7584c4 --- /dev/null +++ b/colab/home/apps.py @@ -0,0 +1,8 @@ + +from django.apps import AppConfig + +class HomeConfig(AppConfig): + name = 'colab.home' + + def ready(self): + from ..celery import app -- libgit2 0.21.2