mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-30 15:28:12 +08:00
Update __init__.py (#572)
Fixes ``` RemovedInDjango41Warning: 'django_q' defines default_app_config = 'django_q.apps.DjangoQConfig'. Django now detects this configuration automatically. You can remove default_app_config. ```
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
VERSION = (1, 3, 8)
|
||||
|
||||
default_app_config = "django_q.apps.DjangoQConfig"
|
||||
import django
|
||||
|
||||
if django.VERSION < (3, 2):
|
||||
default_app_config = "django_q.apps.DjangoQConfig"
|
||||
|
||||
__all__ = ["conf", "cluster", "models", "tasks"]
|
||||
|
||||
Reference in New Issue
Block a user