mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Use Consistent Environment Variable for KHOJ_DEBUG
This commit is contained in:
parent
391db80499
commit
17cbbb0b01
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|||
SECRET_KEY = os.getenv("KHOJ_DJANGO_SECRET_KEY")
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = os.getenv("DJANGO_DEBUG", "False") == "True"
|
||||
DEBUG = os.getenv("KHOJ_DEBUG", "False") == "True"
|
||||
|
||||
ALLOWED_HOSTS = [".khoj.dev", "localhost", "127.0.0.1", "[::1]", "beta.khoj.dev"]
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ def cli(args=None):
|
|||
else:
|
||||
args = run_migrations(args)
|
||||
args.config = parse_config_from_file(args.config_file)
|
||||
if os.environ.get("DEBUG"):
|
||||
if os.environ.get("KHOJ_DEBUG"):
|
||||
args.config.app.should_log_telemetry = False
|
||||
|
||||
return args
|
||||
|
|
Loading…
Add table
Reference in a new issue