first working django model with archivebox-shell command and sql exporting

This commit is contained in:
Nick Sweeting 2019-04-17 03:49:18 -04:00
parent ecf95d398a
commit cdb70c73df
17 changed files with 215 additions and 21 deletions

View file

@ -22,6 +22,7 @@ from .config import (
DATABASE_DIR,
check_dependencies,
check_data_folder,
setup_django,
)
from .logs import (
log_archiving_started,
@ -75,6 +76,11 @@ def init():
write_main_index([], out_dir=OUTPUT_DIR, finished=True)
setup_django()
from django.core.management import call_command
call_command("makemigrations", interactive=False)
call_command("migrate", interactive=False)
stderr('{green}[√] Done.{reset}'.format(**ANSI))