pinax / pinax-messages

a Django app for allowing users of your site to send messages to each other
MIT License
202 stars 58 forks source link

AttributeError: 'WSGIRequest' object has no attribute 'user' #61

Open osnippet opened 3 years ago

osnippet commented 3 years ago

I am trying to fix this warning which randomly thrown in the console.

File ".../python3.9/site-packages/pinax/messages/context_processors.py", line 6, in user_messages
if request.user.is_authenticated:
AttributeError: 'WSGIRequest' object has no attribute 'user'

I tried different versions of Django (2.2 - 3.2) but the problem still showing up. Desktop

Additional context I follow the documentation everything works great except from that annoying warning I get while running dev server.