[Fixed]-How can I test whether Django is running in debug mode?

35👍

As mentioned in the comment, you need to do:

from django.conf import settings

print(settings.DEBUG)

Leave a comment