切换到django1.5以后,经常出现错误.今天又发现一个.
NoReverseMatch: 'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs.
在模板渲染上出了错误,也是django1.5以后的一个修改
比如原来在模板上有
{% url registration_activate activation_key %}
{% url registration_activate activation_key %}
在django1.5以后要替换为
{% url 'registration_activate' activation_key %}