What precisely are the functional differences between toggling the DEBUG setting in a settings.py file of a Django app?
I first assumed
The DEBUG=True, if there is error, page will show details of error.
if DEBUG=False, the ALLOWED_HOSTS of settings.py will work, you should take carefully to set it.
the media and static will not provide access for DEBUG=False, you have to provide them with the help of webserver, like Nginx or Apache.