mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-17 14:37:54 +08:00
By moving signals in their own module, we can now follow Django guidelines and register signals on app.ready.
11 lines
212 B
Python
11 lines
212 B
Python
from django.apps import AppConfig
|
|
|
|
from .conf import Conf
|
|
|
|
|
|
class DjangoQConfig(AppConfig):
|
|
name = 'django_q'
|
|
verbose_name = Conf.LABEL
|
|
|
|
def ready(self):
|
|
from django_q.signals import call_hook |