1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- """
- 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")
|