Only display debug info if settings.DEBUG is True