Skip to content

Instantly share code, notes, and snippets.

@artolaluis
Created January 14, 2014 22:40
Show Gist options
  • Save artolaluis/8427359 to your computer and use it in GitHub Desktop.
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 %}
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