urls.py 333 B

1234567891011121314
  1. # coding=utf-8
  2. from django.conf.urls import url, include
  3. from rest_framework.routers import SimpleRouter
  4. from .views import *
  5. urlpatterns = [
  6. url(r'^dict/$', DictView.as_view()),
  7. ]
  8. router = SimpleRouter()
  9. router.register(r'exam_paper', ExamPaperViewSet)
  10. router.register(r'exam_log', ExamLogViewSet)
  11. urlpatterns += router.urls