1# if you are trying to replace the existing value in a tuple with a new value then this error occurs.
2#Ex:
3languages = ('C', 'Python', 'Scrapy')
4languages[2] = 'Java'
1re_path(r'^connect/(?P<operation>.+)/(?P<pk>\d+)/$', views.change_friends, name='change_friends')