NoReverseMatch with keyword argument uidb64 with Django 2.0

前端 未结 3 1696
我在风中等你
我在风中等你 2020-11-27 19:44

I can\'t understand why my code doesn\'t work. Before it worked, but now, when I run the server and test, the code does not work.

When the user is registering, I se

3条回答
  •  鱼传尺愫
    2020-11-27 20:01

    For newer versions of Django, you can use the slug syntax. For example:

    path('activate///',
             views.activate_account, name='activate')

提交回复
热议问题