Using a regular expression, in PyCharm:
Search:
"{{ MEDIA_URL }}/(.*?)"
Replace with:
"{% static "$1" %}"
This also is a note that that in PyCharm, the way to reference capture groups in the replace expression, is the dollar sign.
Using a regular expression, in PyCharm:
Search:
"{{ MEDIA_URL }}/(.*?)"
Replace with:
"{% static "$1" %}"
This also is a note that that in PyCharm, the way to reference capture groups in the replace expression, is the dollar sign.