You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Flask-babel is installed but not used and not configured in the app, when a RecaptchaField is used in the template, you get an exception like the following:
File "/Users/dimilia/Sites/wrk/adslabs-beer/adsabs/modules/feedback/templates/feedback_macro.html", line 47, in template
{{ form.recaptcha() }}
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/wtforms/fields/core.py", line 140, in __call__
return self.widget(self, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/flask_wtf/recaptcha/widgets.py", line 68, in __call__
'visual_challenge': _('Get a visual challenge'),
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/flaskext/babel.py", line 456, in gettext
t = get_translations()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/flaskext/babel.py", line 194, in get_translations
translations = support.Translations.load(dirname, [get_locale()])
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/flaskext/babel.py", line 209, in get_locale
babel = ctx.app.extensions['babel']
KeyError: 'babel'
If Flask-babel is installed but not used and not configured in the app, when a RecaptchaField is used in the template, you get an exception like the following:
My installation is the following:
Thanks!
The text was updated successfully, but these errors were encountered: