Skip to content

Commit

Permalink
fix(cfg): env forced?? note to myself pls squash this
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed May 25, 2024
1 parent 7746754 commit 705416a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuhoblog/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import os
from urllib.parse import urlparse

DEBUG = False or os.environ['DJANGO_DEBUG'] == 'True'
DEBUG = False or (
os.environ['DJANGO_DEBUG'] is not None and os.environ['DJANGO_DEBUG'] == 'True'
)

if SECRET_KEY == '':
print('no SECRET_KEY env')
Expand Down

0 comments on commit 705416a

Please sign in to comment.