[Answered ]-How can I find the file that's causing a Django error? Getting "Invalid filter: 'add_class'" but no file

2👍

Ok, so in PyCharm I ran “manage.py collectstatic” in debug mode as a python script and put break points around in the django core files mentioned in the traceback.

I was able to then go back through the frames until I found the file it was referencing. Why that file wouldn’t be listed in the traceback is beyond me. But that file was missing a

{% load widget_tweaks %}

Added and fixed.

👤phazei

Leave a comment