-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
current_user = LocalProxy(lambda: _request_ctx_stack.top.user) AttributeError: 'RequestContext' object has no attribute 'user' #15
Comments
I have the same issue |
Actually if I use
I get the error, but if I use
it works, any idea why it is so? |
This might be fixed now. |
I'm having the same issue when I combine Flask-Login with Flask-Principal... |
I'm having the same problem as @dfrocha |
Sorry, we can't directly support Flask-Principal. This seems to be an issue on their end. We haven't had similar reports or been able to reproduce this with just Flask-Login. Closing this. |
I have the same issue but am not using Flask-Principal ... |
Problem solved for me: app = Flask(name) But this code work fine for me app = Flask(name) |
Thanks. |
I also had an error with this without Principal installed. But it turned out I had forgotten to call my configure_extensions method that initializes Flask-Login among others. So yeah, that's why the exception was raised in my case. |
I'm using flask 0.8.
The code here will cause the
error.
The text was updated successfully, but these errors were encountered: