urls.py 361 B

123456789101112131415
  1. from __future__ import print_function, unicode_literals
  2. from django.conf.urls import patterns, url, include
  3. from rest_framework_bulk.routes import BulkRouter
  4. from .views import SimpleViewSet
  5. router = BulkRouter()
  6. router.register('simple', SimpleViewSet, 'simple')
  7. urlpatterns = patterns(
  8. '',
  9. url(r'^api/', include(router.urls, namespace='api')),
  10. )