Use Consistent Environment Variable for KHOJ_DEBUG

This commit is contained in:
Debanjum Singh Solanky 2023-11-09 11:01:28 -08:00
parent 391db80499
commit 17cbbb0b01
2 changed files with 2 additions and 2 deletions

View file

@ -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"]

View file

@ -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