models.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. import djcelery
  16. djcelery.setup_loader()
  17. INSTALLED_APPS = ("djcelery", )
  18. to settings.py.
  19. To install django-celery you can do one of the following:
  20. * Download from PyPI:
  21. http://pypi.python.org/pypi/django-celery
  22. * Install with pip:
  23. pip install django-celery
  24. * Install with easy_install:
  25. easy_install django-celery
  26. * Clone the development repository:
  27. http://github.com/ask/django-celery
  28. If you weren't aware of this already you should read the
  29. Celery 2.0 Changelog as well:
  30. http://celeryproject.org/docs/changelog.html
  31. """)
  32. raise ImproperlyConfigured("Please install django-celery")