Answers for "url namespaces for django rest router urls"

0

url namespaces for django rest router urls

router_urls = patterns(
    '',
    url(r'^meetings/$', MeetingViewSet.as_view(), 'meetings-list'),
)

urlpatterns = patterns(
    '',
    url(r'^(?P<pk>\d+)/', include(router_urls, namespace='router')),
)
Posted by: Guest on August-10-2021
0

url namespaces for django rest router urls

router.register(r'meetings', MeetingViewSet, 'meetings-list')
Posted by: Guest on August-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language