在 urls.py 中先导入getgrades from django.conf.urls import url from app5 import views urlpatterns = [ url(r'getuser/',views.get_user), url(r'getusers/',views.get_users), url(r'getorder',views.getorders), url(r'getgrades',views.getgrades), ] 在 views.py 中编写…