NoReverseMatch following v1.9 to v1.10 upgrade

前端 未结 1 1591
醉话见心
醉话见心 2021-01-19 10:14

I\'ve just upgraded to django v1.10 and I\'m running through tests to check everything works fine but I\'ve getting Reverse for \'django.contrib.auth.views.login\' wit

相关标签:
1条回答
  • 2021-01-19 11:09

    From Django 1.10 release notes:

    The ability to reverse() URLs using a dotted Python path is removed.

    The url template tag uses reverse(). Thus this is not valid anymore:

    {% url 'django.contrib.auth.views.login' %}
    

    You must use the route name.

    See Django 1.8 release notes for details.

    0 讨论(0)
提交回复
热议问题