Flask-DebugToolbarを入れたらRedirectで302が発生する

Flask-DebugToolbarを入れたらリダイレクト時に以下のエラーが発生するようになった

Redirect (302)
Location: /

The Flask Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes.
You can click the above link to continue with the redirect as normal. 
If you'd like to disable this feature, you can set the config variable DEBUG_TB_INTERCEPT_REDIRECTS to False.

これは公式のConfigurationにも書いてありますがが、
以下を設定すれば解決しました。

app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です