apps.py 261 B

12345678910
  1. from django.apps import AppConfig
  2. from django.conf import settings
  3. class DjstripeExtAppConfig(AppConfig):
  4. name = "apps.djstripe_ext"
  5. def ready(self):
  6. if not settings.IS_CELERY:
  7. from .hooks import update_subscription # noqa: F401