from django.conf.urls import url, include from .views import * from rest_framework import routers # Serializers define the API representation. # Routers provide an easy way of automatically determining the URL conf. router = routers.DefaultRouter() router.register(r'cart', CartViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ url(r'^', include(router.urls)), ]