I started using Django release 1.5 and got a problem with my old code:
{{post.title}}<
To exclude folder of .git and to avoid error's MacOS added empty quotes to option -i ''. Example:
find . -path '*/.git*' -prune -o -type f -print0 | xargs -0 sed -i '' 's/ url \([^" >][^ >]*\)/ url "\1"/g'
But I like this approach (MacOS):
grep '{% url' -lrZ . | xargs -0 sed -i '' 's/ url \([^" >][^ >]*\)/ url "\1"/g'