__init__.py 475 B

123456789101112131415
  1. from django.conf import settings
  2. from django.core.exceptions import ImproperlyConfigured
  3. default_app_config = 'extras.apps.ExtrasConfig'
  4. # check that django-rq is installed and we can connect to redis
  5. if settings.WEBHOOKS_ENABLED:
  6. try:
  7. import django_rq
  8. except ImportError:
  9. raise ImproperlyConfigured(
  10. "django-rq is not installed! You must install this package per "
  11. "the documentation to use the webhook backend."
  12. )