I’m using arneb/django messages for handling messages on my django site. Whenever I send a message to a user, it will bring out the below error and the message will still deliver silently.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_messages/views.py", line 77, in compose
request.user.message_set.create(
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 185, in inner
return func(self._wrapped, *args)
AttributeError: 'User' object has no attribute 'message_set'
I’ve been trying to fixed this but yet no success. How can I get rid of this error?
A quick look through the docs (“You need at least django 1.0”) suggest that this is a pretty old package. The messages framework was removed quite some time ago.
I’d suggest looking around for something else to use