예제 #1
0
파일: recreatedb.py 프로젝트: mrmuxl/keops
 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'])