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

{{url_for('.growth.show_growth')}}
2 comments

Hi,

Is this the same as your case?: https://youtrack.jetbrains.com/issue/PY-9954

If yes, please vote and follow this ticket.

1

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

0

Please sign in to leave a comment.