ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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) ] ```