Django object cant be serialized

Can someone tell me how to solve this Django error please I cant find any way to solve it all the solutions are with the django rest framework and im not using it in my project please help quickly because the project im working on is due in only 4 days

Object of type Product is not JSON serializable

Nevermind I found the solution on github if anyone faces any serializer error try putting this in

SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.