コード例 #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'])