跳转到主要内容

Django Response 相对

项目描述

Django Response 相对

安装

pip install django-response

使用

from django_response import response

def xxx(request):
    # return response()
    # return response(XXXStatusCode.YYY)
    return response(200, 'message', u'description', data={})

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

django-response-1.1.1.tar.gz (1.8 kB 查看散列)

上传时间:

构建分发

django_response-1.1.1-py2.py3-none-any.whl (3.4 kB 查看散列)

上传时间: Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面