jumpserver/apps/common/apps.py

20 lines
474 B
Python
Raw Normal View History

2016-09-03 11:05:50 +00:00
from __future__ import unicode_literals
import sys
2023-07-24 06:09:22 +00:00
2016-09-03 11:05:50 +00:00
from django.apps import AppConfig
class CommonConfig(AppConfig):
name = 'common'
def ready(self):
2023-07-24 06:09:22 +00:00
from . import signal_handlers # noqa
from . import tasks # noqa
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)