示例#1
0
 def handle(self, *args, **options):
     from keops.db import scripts
     db = options['database']
     verbosity = options['verbosity']
     scripts.dropdb(db)
     call_command('createdb', verbosity=verbosity, database=db)
示例#2
0
文件: dropdb.py 项目: mrmuxl/keops
 def handle(self, *args, **options):
     from keops.db import scripts
     scripts.dropdb(options['database'])
示例#3
0
 def handle(self, *args, **options):
     from keops.db import scripts
     scripts.dropdb(options['database'])
     scripts.createdb(options['database'])
     scripts.syncdb(options['database'])