[Django]-TypeError: argument of type 'function' is not iterable when starting django runserver

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')

Leave a comment