mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
fix settings.py for prod
This commit is contained in:
parent
c5d9b97e3c
commit
d7e333b5cf
1 changed files with 2 additions and 1 deletions
|
@ -465,7 +465,7 @@ ADMIN_DATA_VIEWS = {
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# only enable debug toolbar when in DEBUG mode with --nothreading (it doesnt work in multithreaded mode)
|
# only enable debug toolbar when in DEBUG mode with --nothreading (it doesnt work in multithreaded mode)
|
||||||
DEBUG_TOOLBAR = True
|
DEBUG_TOOLBAR = False
|
||||||
DEBUG_TOOLBAR = DEBUG_TOOLBAR and DEBUG and ('--nothreading' in sys.argv) and ('--reload' not in sys.argv)
|
DEBUG_TOOLBAR = DEBUG_TOOLBAR and DEBUG and ('--nothreading' in sys.argv) and ('--reload' not in sys.argv)
|
||||||
if DEBUG_TOOLBAR:
|
if DEBUG_TOOLBAR:
|
||||||
try:
|
try:
|
||||||
|
@ -514,6 +514,7 @@ if DEBUG:
|
||||||
# Must delete archivebox/templates/admin to use because it relies on some things we override
|
# Must delete archivebox/templates/admin to use because it relies on some things we override
|
||||||
# visit /__requests_tracker__/ to access
|
# visit /__requests_tracker__/ to access
|
||||||
DEBUG_REQUESTS_TRACKER = True
|
DEBUG_REQUESTS_TRACKER = True
|
||||||
|
DEBUG_REQUESTS_TRACKER = DEBUG_REQUESTS_TRACKER and DEBUG
|
||||||
if DEBUG_REQUESTS_TRACKER:
|
if DEBUG_REQUESTS_TRACKER:
|
||||||
import requests_tracker
|
import requests_tracker
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue