From 50b085db8922c65bcc9af02e136350343e1e8eec Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Mon, 27 Jul 2015 12:49:24 -0300 Subject: [PATCH] Fixing for tests --- colab/__init__.py | 5 ----- colab/home/__init__.py | 3 +++ colab/home/apps.py | 8 ++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 colab/home/apps.py 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