Set debug
in OPTIONS
dictionary of your templates settings.
DEBUG = True
TEMPLATES = [
{
...
'OPTIONS': {
'debug': DEBUG,
},
},
]
Then remove this line from your settings to stop the warnings
TEMPLATE_DEBUG = DEBUG
See the Django docs for detailed instructions how to update your template settings.