コード例 #1
0
ファイル: createdb.py プロジェクト: mrmuxl/keops
 def handle(self, *args, **options):
     from keops.db import scripts
     db = options['database']
     verbosity = options['verbosity']
     scripts.createdb(db)
     scripts.syncdb(db)
     call_command('installapps', database=db, verbosity=verbosity)
コード例 #2
0
ファイル: recreatedb.py プロジェクト: fabiold/keops
 def handle(self, *args, **options):
     from keops.db import scripts
     scripts.dropdb(options['database'])
     scripts.createdb(options['database'])
     scripts.syncdb(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'])