models.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. """
  2. celery.models has been moved to djcelery.models.
  3. This file is deprecated and will be removed in Celery v2.1.0.
  4. """
  5. import atexit
  6. from django.core.exceptions import ImproperlyConfigured
  7. @atexit.register
  8. def _display_help():
  9. import sys
  10. sys.stderr.write("""
  11. ======================================================
  12. ERROR: celery can't be added to INSTALLED_APPS anymore
  13. ======================================================
  14. Please install the django-celery package and add:
  15. INSTALLED_APPS = "djcelery"
  16. To install django-celery you can do one of the following:
  17. * Download from PyPI:
  18. http://pypi.python.org/pypi/django-celery
  19. * Install with pip:
  20. pip install django-celery
  21. * Install with easy_install:
  22. easy_install django-celery
  23. * Clone the development repository:
  24. http://github.com/ask/django-celery
  25. If you weren't aware of this already you should read the
  26. Celery 2.0 Changelog as well:
  27. http://github.com/ask/celery/tree/djangofree/Changelog
  28. """)
  29. raise ImproperlyConfigured("Please install django-celery")