Django 1.5: 'url' requires a non-empty first argument. The syntax changed in Django 1.5
Problem was in code like that:
{% url books.views.books_list somevar %}
To solve this problem you should do like that:
{% url "books.views.books_list" somevar %}
How to automate solution
You can use this in console:
WARNING: be sure, that you execute this in template folder of your project!
find . -type f -print0 | xargs -0 sed -i 's/ url \([^" >][^ >]*\)/ url "\1"/g'
automated solution taken fomr this SO answer.
Written by Dmitry Belaventsev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sed
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#