2023-12-26 17:27:29 +08:00
|
|
|
from threading import Thread
|
|
|
|
|
2023-12-13 11:41:22 +08:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class JqrConfig(AppConfig):
|
|
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
|
|
name = 'apps.jqr'
|
2023-12-26 17:26:43 +08:00
|
|
|
|
|
|
|
def ready(self):
|
2023-12-26 17:27:29 +08:00
|
|
|
from apps.jqr.pubsub import JQREventNewUserCallbackPubSub
|
|
|
|
t = Thread(target=JQREventNewUserCallbackPubSub.event_callback_listener)
|
|
|
|
t.start()
|