NoReverseMatch with keyword argument uidb64 with Django 2.0

前端 未结 3 1565
我在风中等你
我在风中等你 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:13

    Maybe its stupid since the URL is not dynamic but it worked...

    path('activate/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', views.activate, name='activate'),
    

提交回复
热议问题