Skip to content
Advertisement

AttributeError ‘tuple’ object has no attribute ‘get’

I have a Django application. But i can’t an error that i have been struggling with for some time now.

JavaScript

And this is the traceback django provides me.

JavaScript

I have a hard time figuring out why this error occurs. How can i find out where that tuple is in my code?

The view:

JavaScript

Advertisement

Answer

You are returning a tuple here:

JavaScript

Did you forget to add render there perhaps:

JavaScript
Advertisement