jumpserver/apps/common/apps.py

16 lines
367 B
Python
Raw Normal View History

2016-09-03 11:05:50 +00:00
from __future__ import unicode_literals
import sys
2016-09-03 11:05:50 +00:00
from django.apps import AppConfig
class CommonConfig(AppConfig):
name = 'common'
def ready(self):
2022-03-03 01:58:09 +00:00
from . import signal_handlers
from .signals import django_ready
2021-09-23 02:26:39 +00:00
if 'migrate' in sys.argv or 'compilemessages' in sys.argv:
return
django_ready.send(CommonConfig)