예제 #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'])