Forums

Django debug_toolbar causing RecursionError

Hi PA, when I add debug_toolbar to my list of installed apps it causes a RecursionError when navigating to any endpoint even ones that don't exist. This is even though debug_toolbar is not added to any of my urls.py Any ideas why this might be happening?

Django debug toolbar messes with the logging that we configure so that we can provide logs from your webapps, so it will not work on PythonAnywhere.

I get the same sort of issue when trying to use rest_framework_swagger, is this the same issue?

If it's a recursion error with logging-related functions in the traceback, then it's likely to be, yes.