jumpserver/apps/common/apps.py

15 lines
324 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):
from . import signals_handlers
from .signals import django_ready
if 'migrate' not in sys.argv:
django_ready.send(CommonConfig)