Created
May 9, 2023 08:21
-
-
Save basola21/702d8d52bd7227b50bc08552ea547de0 to your computer and use it in GitHub Desktop.
Regex for the static files in djnago template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find what: | |
(href|src)="([a-zA-Z0-9/.-]+[^.html])" | |
Replace with: | |
$1=\"{% static 'assets/$2' %}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment