我正在使用arneb/django 消息来处理我的 django 站点上的消息。每当我向用户发送消息时,它都会显示以下错误,并且消息仍会以静默方式传递。
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'
我一直在尝试解决这个问题,但没有成功。我怎样才能摆脱这个错误?