Skip to content

Commit

Permalink
Fix: DEBUG setting in settings.py
Browse files Browse the repository at this point in the history
Correctly evaluate environment variable as boolean
  • Loading branch information
Pythonusus committed Jan 8, 2025
1 parent bd4bdcd commit 4f3bbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task_manager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
SECRET_KEY = os.getenv('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DEBUG', False)
DEBUG = os.getenv('DEBUG', 'False') == 'True'

ALLOWED_HOSTS = [
'127.0.0.1',
Expand Down

0 comments on commit 4f3bbb6

Please sign in to comment.