archivebox.misc.db

Database utility functions for ArchiveBox.

Module Contents

Functions

list_migrations

List all Django migrations and their status

apply_migrations

Apply pending Django migrations

get_admins

Get list of superuser accounts

API

archivebox.misc.db.list_migrations(out_dir: pathlib.Path = DATA_DIR) list[tuple[bool, str]][source]

List all Django migrations and their status

archivebox.misc.db.apply_migrations(out_dir: pathlib.Path = DATA_DIR) list[str][source]

Apply pending Django migrations

archivebox.misc.db.get_admins(out_dir: pathlib.Path = DATA_DIR) list[Any][source]

Get list of superuser accounts