2016-09-03 11:05:50 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2019-02-26 04:38:20 +00:00
|
|
|
import sys
|
2016-09-03 11:05:50 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class CommonConfig(AppConfig):
|
|
|
|
name = 'common'
|
2019-06-24 12:16:18 +00:00
|
|
|
|
|
|
|
def ready(self):
|
2022-03-03 01:58:09 +00:00
|
|
|
from . import signal_handlers
|
2023-02-17 09:14:53 +00:00
|
|
|
from . import tasks
|
2019-09-17 04:34:47 +00:00
|
|
|
from .signals import django_ready
|
2022-10-26 09:38:32 +00:00
|
|
|
excludes = ['migrate', 'compilemessages', 'makemigrations']
|
|
|
|
for i in excludes:
|
|
|
|
if i in sys.argv:
|
|
|
|
return
|
2021-09-23 02:26:39 +00:00
|
|
|
django_ready.send(CommonConfig)
|