mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-03 06:17:53 +10:00
feat: Patch setup_django so we can use an inmemory db in specific commands
This commit is contained in:
committed by
Cristian Vargas
parent
35a5700c73
commit
9aac09a5e1
@@ -100,10 +100,12 @@ TEMPLATES = [
|
||||
################################################################################
|
||||
|
||||
DATABASE_FILE = Path(OUTPUT_DIR) / SQL_INDEX_FILENAME
|
||||
DATABASE_NAME = os.environ.get("ARCHIVEBOX_DATABASE_NAME", DATABASE_FILE)
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': str(DATABASE_FILE),
|
||||
'NAME': DATABASE_NAME,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user