from django.urls import re_path from fir_relations import views app_name='fir_relations' urlpatterns = [ re_path(r'^(?P\d+)/object/(?P\d+)/$', views.relations, name='list'), re_path(r'^(?P\d+)/remove/$', views.remove_relation, name='remove') ]