Pycharm / Flask : Refactor > Rename doesn't rename in HTML template

I'm refactoring a flask application to make use of blueprints / be more modular.  I noticed that when I 'Refactor > Rename' a def (function) name in a .py file, it works as expected, but the corresponding name in the HTML template (snippet below) was not renamed.  I had to do it manually. 

Is there a way to configure PyCharm to check HTML templates in a flask application and refactor those as well when renaming variables, etc? 

I hope my question makes sense.  I'm using PyCharm Pro

Thanks in advance

Comment actions Permalink


Is this the same as your case?:

If yes, please vote and follow this ticket.

Comment actions Permalink

Yes.  Looks like the same issue.  Thanks for sending.


Please sign in to leave a comment.