예제 #1
0
def do_sync(*args, **kwdargs):
    sync_app_plugins()
예제 #2
0
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()
예제 #3
0
def do_sync(*args, **kwdargs):
    sync_app_plugins(verbosity=kwdargs.get("verbosity", 1))
예제 #4
0
def do_sync(*args, **kwdargs):
    sync_app_plugins(verbosity=kwdargs.get("verbosity", 1))
예제 #5
0
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()