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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.