16 lines
444 B
Python
16 lines
444 B
Python
from threading import Thread
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class JqrConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'apps.jqr'
|
|
|
|
def ready(self):
|
|
from django.conf import settings
|
|
if not settings.DEBUG:
|
|
from apps.jqr.pubsub import JQREventNewUserCallbackPubSub
|
|
t = Thread(target=JQREventNewUserCallbackPubSub.event_callback_listener)
|
|
t.start()
|