-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnonymousUser doesn't have attribute '_meta'?! #122
Comments
ERRR!!! This was my fault, sorry to bother... the error in my email had very few details, when I got to the office today it was obvious what my mistake was in the traceback. Sorry to bother.
|
Hello @ckcollab I'm having the exact same issue, however is not clear to me what you did to fix it, can you elaborate on that? I'm not finding any answers to this 😕 I know it was a long time, but I have no clue, what I'm just doing is log in a user after registration. Thanks! |
Well, is it an AnonymousUser? Post some code and I can help maybe, but I think in my last message I was talking about how it was obvious I was dealing with an AnonymousUser and shouldn't be trying to get activity streams for them? |
Thanks for your offer to help, my problem was solved since I noticed I haven't use For others reading realise what the error says "You're dealing with an AnonymousUser", once I thought on this it was clear my login wasn't working at all. |
Hello @ckcollab I'm having the exact same issue, however is not clear to me what you did to fix it, can you elaborate on that? I'm not finding any answers to this. .It come error as ('AnonymousUser' object has no attribute '_meta') |
@agrawalharish1997 actually, the way activity stream is built a user is required. You can't use an The pull request, for good reason, was denied. You can use this fork though and make actions with no user attached! |
So what can i do , such that , the localuser can login and see the home
page of my site
…On Sat, 18 Jan 2020, 11:00 Eric Carmichael, ***@***.***> wrote:
@agrawalharish1997 <https://github.com/agrawalharish1997> actually, the
way activity stream is built a user is *required*. You can't use an
AnonymousUser. You can see the work one of our engineers (thanks Chris!
@ReproKillbot <https://github.com/ReproKillbot>) did towards adding this
ability:
#442 <#442>
The pull request, for good reason, was denied. You can use this fork
though and make actions with no user attached!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#122?email_source=notifications&email_token=AMB6OAGCPNHYDTXWAHUOGSLQ6KHXFA5CNFSM4AB2M2SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJJQ6PA#issuecomment-575868732>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMB6OAGDPCBJAW4TQPA27F3Q6KHXFANCNFSM4AB2M2SA>
.
|
..I'm not sure about that.. |
Hello please I am having the same issue please can someone explain how to actually set password for this error |
@AmiteyeEmmanuel you can do something like this.. user = User.objects.get(email="someguy@gmail.com")
user.set_password("this is a password that gets hashed and saved to database")
user.save() |
It's getting hit at this line
I edited managers.py and am using my own stream
I use that to select all activities a user was rated in, or all activies in which the user was rated. This is the user displayed on the page, NOT the user viewing the page! I can't find any reference to
request.user
, so I have no idea why it matters that the user is Anonymous! This works perfectly with logged in users.I am also doing caching for non logged in users which might be doing something... but I have no idea how!!
The text was updated successfully, but these errors were encountered: