Could you provide the code where this error points to.
This could be caused by different reasons.
Are you sure you're importing the User model from the right path?
Finally could you show where you used user_session in your code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
After log in, I get error 'User' object has no attribute 'user_session'. How to fix this error?
Could you provide the code where this error points to.
This could be caused by different reasons.
Are you sure you're importing the
User
model from the right path?Finally could you show where you used
user_session
in your code.