mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-30 06:25:28 -04:00
first working django model with archivebox-shell command and sql exporting
This commit is contained in:
parent
ecf95d398a
commit
cdb70c73df
17 changed files with 215 additions and 21 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue