def do_sync(*args, **kwdargs): sync_app_plugins()
from django.db.models import signals from commands.sync_plugins import sync_app_plugins from app_plugins import models as sender_app def do_sync(*args, **kwdargs): sync_app_plugins() signals.post_syncdb.connect(do_sync, sender=sender_app) if __name__ == "__main__": sync_app_plugins()
def do_sync(*args, **kwdargs): sync_app_plugins(verbosity=kwdargs.get("verbosity", 1))
from django.db.models import signals from commands.sync_plugins import sync_app_plugins from app_plugins import models as sender_app def do_sync(*args, **kwdargs): sync_app_plugins(verbosity=kwdargs.get("verbosity", 1)) signals.post_syncdb.connect(do_sync, sender=sender_app) if __name__ == "__main__": sync_app_plugins()