Skip to content

Commit 94bb2ba

Browse files
authored
Merge pull request testdrivenio#1 from kaypee90/fix-debug-flag-to-boolean
Switch debug flag to boolean
2 parents ce7c04c + 4da7120 commit 94bb2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/hello_django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
SECRET_KEY = os.environ.get("SECRET_KEY")
2525

26-
DEBUG = int(os.environ.get("DEBUG", default=0))
26+
DEBUG = bool(os.environ.get("DEBUG", default=0))
2727

2828
# 'DJANGO_ALLOWED_HOSTS' should be a single string of hosts with a space between each.
2929
# For example: 'DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]'

0 commit comments

Comments
 (0)