企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
* 配置路由`urls` 修改文件`/xinchen/urls.py` ```python from django.contrib import admin from django.urls import path, include from rest_framework import routers from rest_framework_jwt.views import obtain_jwt_token from api.views import * router = routers.DefaultRouter() router.register('roles', PageRolesViewSet) router.register('users', UserProfileViewSet) urlpatterns = [ path('admin/', admin.site.urls), path('', include(router.urls)), path('token/', obtain_jwt_token) ] ```