Browse Source

Removed deprecated celery.models and celery.management.commands

Ask Solem 14 years ago
parent
commit
08cf386994

+ 0 - 0
celery/management/__init__.py


+ 0 - 0
celery/management/commands/__init__.py


+ 0 - 16
celery/management/commands/celeryd.py

@@ -1,16 +0,0 @@
-"""
-
-Start the celery daemon from the Django management command.
-
-"""
-from django.core.management.base import BaseCommand
-
-import celery.models            # <-- shows upgrade instructions at exit.
-
-
-class Command(BaseCommand):
-    """Run the celery daemon."""
-    help = 'Run the celery daemon'
-
-    def handle(self, *args, **options):
-        pass

+ 0 - 56
celery/models.py

@@ -1,56 +0,0 @@
-"""
-
-celery.models has been moved to djcelery.models.
-
-This file is deprecated and will be removed in Celery v2.1.0.
-
-"""
-import atexit
-
-from django.core.exceptions import ImproperlyConfigured
-
-
-@atexit.register
-def _display_help():
-    import sys
-
-    sys.stderr.write("""
-
-======================================================
-ERROR: celery can't be added to INSTALLED_APPS anymore
-======================================================
-
-Please install the django-celery package and add:
-
-    import djcelery
-    djcelery.setup_loader()
-    INSTALLED_APPS = ("djcelery", )
-
-to settings.py.
-
-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 2.0 Changelog as well:
-    http://celeryproject.org/docs/changelog.html
-
-""")
-
-raise ImproperlyConfigured("Please install django-celery")