forked from 0x2620/pandora
fix initdb
This commit is contained in:
parent
29c6dc866b
commit
e9bcd19161
1 changed files with 2 additions and 5 deletions
|
@ -26,14 +26,11 @@ class Command(BaseCommand):
|
||||||
print('initializing database...')
|
print('initializing database...')
|
||||||
manage_py = sys.argv[0]
|
manage_py = sys.argv[0]
|
||||||
for cmd in [
|
for cmd in [
|
||||||
[manage_py, 'syncdb', '--noinput'],
|
[manage_py, 'migrate', '--noinput'],
|
||||||
[manage_py, 'migrate', 'item'],
|
|
||||||
[manage_py, 'migrate', 'annotation'],
|
|
||||||
[manage_py, 'migrate'],
|
|
||||||
[manage_py, 'sqlfindindex'],
|
[manage_py, 'sqlfindindex'],
|
||||||
[manage_py, 'sync_itemsort'],
|
[manage_py, 'sync_itemsort'],
|
||||||
[manage_py, 'update_static'],
|
[manage_py, 'update_static'],
|
||||||
[manage_py, 'compile_pyc'],
|
[manage_py, 'compile_pyc', '-p', os.path.dirname(manage_py)],
|
||||||
]:
|
]:
|
||||||
run(cmd)
|
run(cmd)
|
||||||
if not os.path.exists(os.path.join(settings.STATIC_ROOT, 'admin')):
|
if not os.path.exists(os.path.join(settings.STATIC_ROOT, 'admin')):
|
||||||
|
|
Loading…
Reference in a new issue