Created
October 16, 2014 19:12
-
-
Save alexanderattar/1dcababd74e5ca4a5091 to your computer and use it in GitHub Desktop.
converts url tags to the new style format in django 1.5 and up. i.e. {% url whatever args %} -> {% url 'whatever' args %}. run it from your templates directory
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 . -type f -print0 | xargs -0 sed -i '' -e "s/ url \([^\" >][^ >]*\)/ {% url '\1'/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment