In my project for success confirmation messages I am using the Messages framework from Django. Here I am always getting errors in deployment server.
After deploying site.when i am continuously testing site. After some time I am getting the 'str' object is not callable error is raised. for success confirmation messages.
In views.py we are defining confirmation messages.
messages.success(request, "Item is successfully removed.")
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
MESSAGE_LEVEL = message_constants.DEBUG
Django version 3.2.7
Can anyone please help me. how to fix this error I am facing this issue from long time back again and again same issue is raising. where I am going wrong i am not understanding could you please help me to fix this issue.