From e9bcd191610725e495214b5dddc027414ee6abe8 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 20 Feb 2016 01:09:54 +0530 Subject: [PATCH] fix initdb --- pandora/app/management/commands/init_db.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pandora/app/management/commands/init_db.py b/pandora/app/management/commands/init_db.py index 571ae957b..029fc1f9b 100644 --- a/pandora/app/management/commands/init_db.py +++ b/pandora/app/management/commands/init_db.py @@ -26,14 +26,11 @@ class Command(BaseCommand): print('initializing database...') manage_py = sys.argv[0] for cmd in [ - [manage_py, 'syncdb', '--noinput'], - [manage_py, 'migrate', 'item'], - [manage_py, 'migrate', 'annotation'], - [manage_py, 'migrate'], + [manage_py, 'migrate', '--noinput'], [manage_py, 'sqlfindindex'], [manage_py, 'sync_itemsort'], [manage_py, 'update_static'], - [manage_py, 'compile_pyc'], + [manage_py, 'compile_pyc', '-p', os.path.dirname(manage_py)], ]: run(cmd) if not os.path.exists(os.path.join(settings.STATIC_ROOT, 'admin')):