Skip to main content

DRF-jsonresponse

  • django restframework 默认是遵循restful api

  • 在中国生产环境中一般不会采用restful规则,返回的结果是通过json_code状态码和message来完成的

  • 该文档修改了原有的mixins,修改返回内容格式

  • list:有分页效果,需要在settings文件中单独设置

REST_FRAMEWORK = {
    'DEFAULT_PAGINATION_CLASS': 'base.pagination.LargeResultsSetPagination',
    'PAGE_SIZE': 20,
}
  • create,update,retrieve

Release files for drf-jsonresponse 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drf-jsonresponse 0.2
File Size Uploaded
drf_jsonresponse-0.2.tar.gz 3.3 kB Details

Release files / drf_jsonresponse-0.2.tar.gz

Download URL drf_jsonresponse-0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3be7fbba245c42ac34da9c3db369c1027ff4b912809b255544ec52fd98bdb715
BLAKE2b-256 checksum
How to use checksums
d2152b221166077693413fda70ffe657e46c5dac3dd1c8197d113b8c9b1ab892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page