mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 12:13:05 +00:00
fix more constants / config loading
This commit is contained in:
parent
bb65b2dbec
commit
c950271bc3
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ def help(out_dir: Path=archivebox.DATA_DIR) -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if (Path(out_dir) / SQL_INDEX_FILENAME).exists():
|
if archivebox.CONSTANTS.DATABASE_FILE.exists():
|
||||||
print('''{green}ArchiveBox v{}: The self-hosted internet archive.{reset}
|
print('''{green}ArchiveBox v{}: The self-hosted internet archive.{reset}
|
||||||
|
|
||||||
{lightred}Active data directory:{reset}
|
{lightred}Active data directory:{reset}
|
||||||
|
@ -191,7 +191,7 @@ def version(quiet: bool=False,
|
||||||
"""Print the ArchiveBox version and dependency information"""
|
"""Print the ArchiveBox version and dependency information"""
|
||||||
|
|
||||||
setup_django_minimal()
|
setup_django_minimal()
|
||||||
from plugins_sys.config.apps import SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SHELL_CONFIG, CONSTANTS
|
from plugins_sys.config.apps import SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SHELL_CONFIG
|
||||||
from plugins_auth.ldap.apps import LDAP_CONFIG
|
from plugins_auth.ldap.apps import LDAP_CONFIG
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue