# self.serializer = import\_string(settings.SESSION\_SERIALIZER)

**URL:** <https://forum.djangoproject.com/t/self-serializer-import-string-settings-session-serializer/26339>\
**Category:** Mystery Errors\
**Created:** [December 21, 2023, 9:26pm UTC](https://forum.djangoproject.com/t/self-serializer-import-string-settings-session-serializer/26339 "2023-12-21T21:26:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yumlusoft](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/yumlusoft/32/7580_2.png) [@yumlusoft](https://forum.djangoproject.com/u/yumlusoft)\
**Post date:** [December 21, 2023, 9:26pm UTC](https://forum.djangoproject.com/t/self-serializer-import-string-settings-session-serializer/26339/1 "2023-12-21T21:26:10Z")

</div>

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

 ![hata1](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/8/5/85fdcf6ad43fe9ed9af4a775842a4d8d63e76edd.png)  
 ![hata2](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/0/b/0bffb9cfed063dfe3cab3e6c18c268b45c38f8c8.png)

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.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [December 21, 2023, 10:38pm UTC](https://forum.djangoproject.com/t/self-serializer-import-string-settings-session-serializer/26339/2 "2023-12-21T22:38:27Z")

</div>

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

In the [Django 5.0 Release Notes](https://docs.djangoproject.com/en/5.0/releases/5.0/), it states:

> - `django.contrib.sessions.serializers.PickleSerializer` is removed.

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