'url_for()' generates a IDE warning in a Flask project created with Pycharm Flask Project Template

This warning occurs only if a flask project is created using the Project template for Flask.

flask url_for() shows as a warning, with a vague message.

But the resulting page source shows that `main.css` is loaded.

 How can I fix this ?

2 comments
Comment actions Permalink

Hi,

Could you provide a bit more specific steps to create the project and reproduce the issue? 

0
Comment actions Permalink

Got it.

It seems I had to set the template language as Jinja 2 in the preferences. And the warning disappeared. I thought because Jinja2 was install with the flask package, the Flask project would automatically set it to as the template Language. For some reason it was not set the default template language.



0

Please sign in to leave a comment.