没有合适的资源?快使用搜索试试~ 我知道了~
drf-friendly-errors:Django REST框架错误显示扩展
共29个文件
py:21个
txt:4个
gitignore:1个
需积分: 14 0 下载量 147 浏览量
2021-05-15
17:37:46
上传
评论
收藏 24KB ZIP 举报
温馨提示
DRF友好错误 Django REST框架错误显示扩展 概述 该软件包扩展了默认错误JSON主体,提供了可配置的错误代码和更易用的响应结构。 它将变成HTTP 400响应的默认JSON主体,如下所示 { "name" : [ "This field is required." ], "password" : [ "This field may not be blank." ] " age ": [ "This field may not be null." ] " description ": [ "Ensure this field has no more than 100 characters." ] } 进入 { "code" : 1001 , "message" : "Validation Failed" , "error
资源推荐
资源详情
资源评论
收起资源包目录
drf-friendly-errors-master.zip (29个子文件)
drf-friendly-errors-master
MANIFEST.in 27B
rest_framework_friendly_errors
field_map.py 1KB
utils.py 553B
mixins.py 10KB
__init__.py 216B
settings.py 6KB
handlers.py 956B
tests
test_utils.py 2KB
serializers.py 5KB
models.py 884B
utils.py 129B
test_serializers.py 7KB
conftest.py 1KB
test_views.py 17KB
test_models_serializers.py 7KB
__init__.py 399B
views.py 1KB
urls.py 673B
exceptions.py 512B
test_exception_handler.py 2KB
LICENSE 1KB
runtests.py 2KB
requirements.txt 126B
requirements
requirements-packaging.txt 89B
requirements-testing.txt 84B
requirements-codestyle.txt 113B
setup.py 3KB
.gitignore 130B
readme.rst 9KB
共 29 条
- 1
资源评论
weixin_42128015
- 粉丝: 20
- 资源: 4641
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功