Created
January 14, 2014 22:40
-
-
Save artolaluis/8427359 to your computer and use it in GitHub Desktop.
Django 1.4 to 1.6 url templatetags syntax update. e.g. From {% url foobar one two %} To {% url "foobar" one two %}
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
sed -e 's/{% url \([^ %]*\)\(.*\)%}/{% url "\1"\2%}/g' file.in > file.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment