I started using Django release 1.5 and got a problem with my old code:
{{post.title}}<
I was getting an "ILLEGAL BYTE SEQUENCE" error from sed with most of these recipes, which I was able to fix by doing this first:
LANG=C
However, these recipes generated tons of false positives on my project, and we already had a mix of url names that were single-quoted, double-quoted, or unquoted. It was a mess. Turned out the cleanest approach was to just search the templates directory with my editor (Sublime) in regex mode for:
\{\%\ url\ [^']
\{\%\ url\ [^"]
(find all instances that weren't already quoted) and go through them visually. That turned out to be faster and cleaner than trying to automate it and then clean up the mess afterwards.