|
@@ -1060,6 +1060,7 @@ def server(runserver_args: Optional[List[str]]=None,
|
|
|
reload: bool=False,
|
|
reload: bool=False,
|
|
|
debug: bool=False,
|
|
debug: bool=False,
|
|
|
init: bool=False,
|
|
init: bool=False,
|
|
|
|
|
+ createsuperuser: bool=False,
|
|
|
out_dir: Path=OUTPUT_DIR) -> None:
|
|
out_dir: Path=OUTPUT_DIR) -> None:
|
|
|
"""Run the ArchiveBox HTTP server"""
|
|
"""Run the ArchiveBox HTTP server"""
|
|
|
|
|
|
|
@@ -1068,6 +1069,9 @@ def server(runserver_args: Optional[List[str]]=None,
|
|
|
if init:
|
|
if init:
|
|
|
run_subcommand('init', stdin=None, pwd=out_dir)
|
|
run_subcommand('init', stdin=None, pwd=out_dir)
|
|
|
|
|
|
|
|
|
|
+ if createsuperuser:
|
|
|
|
|
+ run_subcommand('manage', subcommand_args=['createsuperuser'], pwd=out_dir)
|
|
|
|
|
+
|
|
|
# setup config for django runserver
|
|
# setup config for django runserver
|
|
|
from . import config
|
|
from . import config
|
|
|
config.SHOW_PROGRESS = False
|
|
config.SHOW_PROGRESS = False
|