7👍
✅
I guess I found the error
re_path(r'^connect/(?P<operation>.+)/(?P<pk>\d+)/$', views.change_friends, name=change_friends)
The name must be a string so it shoud be like this
re_path(r'^connect/(?P<operation>.+)/(?P<pk>\d+)/$', views.change_friends, name='change_friends')
Source:stackexchange.com