Django release 1.5: 'url' requires a non-empty first argument. The syntax changed in Django 1.5

后端 未结 6 402
遥遥无期
遥遥无期 2020-12-02 10:02

I started using Django release 1.5 and got a problem with my old code:

{{post.title}}<

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 10:06

    you may also need to do regexp-replace "\{% url "([\w:]+)" for "\{% url '$1' in order to aviod syntax errors like baz

提交回复
热议问题