self.serializer = import_string(settings.SESSION_SERIALIZER)

I apologize for the bad English.

I bought a new computer, moved my files, installed all my libraries, and wanted to get my work back on its feet.

But I encountered an unexpected error, the problem is exactly as follows


The error I received is like this. I did research on how to solve the problem, but I could not find a solution.

I am grateful in advance to those who will solve this problem of mine. Good work.

Your code appears to have been written for an earlier version of Django and Python.

In the Django 5.0 Release Notes, it states:

  • django.contrib.sessions.serializers.PickleSerializer is removed.

You need to update your code to use a different serializer.