-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error flask_gravatar with flask 3.0.0 #31
Comments
I am currently experiencing the same issue, after upgrading Flask to version, 3.0.0. i guess the flask_gravatar 0.5.0 is not compatible with it. Have you found any solution to this problem since? |
Well i found a solution, remove anything flask_gravatar from your code and define gravatar as a function instead and integrate into your html. here is the function example: def gravatar_url(email, size=100, rating='g', default='retro', force_default=False): This overrides the default function, so its now a custom function i hope that helps you |
Thank you so much yes it works like this 👍👍👍👍 |
Gravatar is a pretty common tool that more Flask folks are going to want to use in updated Flask versions. |
This worked for me, but I had to use sha256 following this gravatar doc |
Trying to use flask_gravatar in my project but have the following error when running the app with Gravatar:
ImportError: cannot import name '_request_ctx_stack' from 'flask'
The whole app is working perfectly until I use the documentation exemple:
from flask_gravatar import Gravatar
gravatar = Gravatar(app, size=100, rating='g', default='retro', force_default=False, force_lower=False, use_ssl=False, base_url=None)
The text was updated successfully, but these errors were encountered: