Skip to content

Commit fc728ea

Browse files
Merge branch 'main' into blog-link-fix
2 parents e99aca2 + 91d857d commit fc728ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

blt/settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
SECRET_KEY = "i+acxn5(akgsn!sr4^qgf(^m&*@+g1@u^t@=8s@axc41ml*f=s"
5858

59-
DEBUG = False
59+
DEBUG = os.environ.get("DEBUG", "False").lower() == "true"
6060
TESTING = sys.argv[1:2] == ["test"]
6161

6262
SITE_ID = 1
@@ -319,8 +319,7 @@
319319
},
320320
}
321321
DEFAULT_FILE_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
322-
if not TESTING:
323-
DEBUG = True
322+
# Removed DEBUG override - DEBUG should be controlled by environment variable
324323

325324
# use this to debug emails locally
326325
# python -m smtpd -n -c DebuggingServer localhost:1025

0 commit comments

Comments
 (0)