sehmaschine / django-filebrowser

Media-Management with Grappelli
http://twitter.com/sehmaschine
Other
976 stars 408 forks source link

Fix for unexisting settings.TEMPLATE_DEBUG in version templatetag #338

Closed lnmichal closed 6 years ago

lnmichal commented 6 years ago

Settings.TEMPLATE_DEBUG parameter was finally removed in Django 1.10. After the change the code will be compatible with current and previous Django versions. Currently, the exception is catched higher and re-raised if needed.

cho-leukeleu commented 6 years ago

Maybe try to get the value of DEBUG if TEMPLATE_DEBUG is not set?

lnmichal commented 6 years ago

IMHO there is no need for it. Currently, Django checks the setting and catches the exception if needed on the lower level.