把各个应用urls添加到主路由

打开**caseplatform\urls.py**,修改代码

  1. from django.contrib import admin
  2. from django.urls import path, include
  3. from rest_framework.documentation import include_docs_urls
  4. urlpatterns = [
  5. path('admin/', admin.site.urls),
  6. path('api/', include_docs_urls(title='接口文档')),
  7. path('', include('project.urls')),
  8. path('', include('module.urls')),
  9. path('', include('case.urls')),
  10. path('', include('user.urls')),
  11. ]