django 提示ImportError: cannot import name json_response
from json_response import JsonResponse, json_response as json_resp
使用的语句如上,其实并不是没有安装,只是需要升级一下
pip install django-json-response --upgrade
from json_response import JsonResponse, json_response as json_resp
使用的语句如上,其实并不是没有安装,只是需要升级一下
pip install django-json-response --upgrade