1👍
✅
This looks like an old bug in django-debug-toolbar. Do you happen to know which version you are using? Because the file looks like the one in this commit. Several fixes has been made to that file since then: this one, for example seems to address specifically your issue.
In any case, the version you’re using seems to predate the 2nd of June, 2011. I would try looking into updating your environment.
👤jro
Source:stackexchange.com