Pārlūkot izejas kodu

Adding celery to INSTALLED_APPS or importing celery.models now raises
ImproperlyConfigured with detailed instructions on how to resolve the problem.

Ask Solem 15 gadi atpakaļ
vecāks
revīzija
63705cb8af
1 mainītis faili ar 43 papildinājumiem un 0 dzēšanām
  1. 43 0
      celery/models.py

+ 43 - 0
celery/models.py

@@ -0,0 +1,43 @@
+"""
+
+celery.models has been moved to djcelery.models.
+
+This file is deprecated and will be removed in Celery v1.4.0.
+
+"""
+from django.core.exceptions import ImproperlyConfigured
+
+raise ImproperlyConfigured("""
+
+======================================================
+ERROR: celery can't be added to INSTALLED_APPS anymore
+======================================================
+
+Please install the django-celery package and add:
+
+    INSTALLED_APPS = "djcelery"
+
+To install django-celery you can do one of the following:
+
+* Download from PyPI:
+
+    http://pypi.python.org/pypi/django-celery
+
+* Install with pip:
+
+    pip install django-celery
+
+* Install with easy_install:
+
+    easy_install django-celery
+
+* Clone the development repository:
+
+    http://github.com/ask/django-celery
+
+
+If you weren't aware of this already you should read the
+Celery 1.2.0 Changelog as well:
+    http://github.com/ask/celery/tree/djangofree/Changelog
+
+""")