from django.conf.urls import url from django.conf import settings from longclaw.longclaworders import api from longclaw.settings import API_URL_PREFIX # Bookings orders = api.OrderViewSet.as_view({ 'get': 'retrieve', }) urlpatterns = ( ### VIEWS ### url( r'^order/(?P[0-9]+)/$', orders, name='orders' ), url( API_URL_PREFIX + r'^order/(?P[0-9]+)/fulfill/$', api.fulfill_order, name='fulfill_order' ) )