Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/contrib/django/celery/models.py |
"""
raven.contrib.django.celery.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
if 'djcelery' not in settings.INSTALLED_APPS:
raise ImproperlyConfigured(
"Put 'djcelery' in your INSTALLED_APPS setting in order to use the "
"sentry celery client.")