【文件属性】:
文件名称:django-easy-response:以更简单的方式返回HTTP响应
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-02 15:31:09
Python
django-easy-response
以更简单的方式返回HTTP响应
以前称为django-simple-response
安装
pip install django_easy_response
基本用法
settings.py
MIDDLEWARE_CLASSES = (
...
# last on the list
easy_response . middleware . EasyResponseMiddleware ,
)
需要更多设置吗? 去。
views.py
def view ( request ):
# return HTTP response with status code 200 (default)
return
def another_view ( request ):
# return HTTP resp
【文件预览】:
django-easy-response-master
----example()
--------example()
--------app()
--------db.sqlite3(0B)
--------manage.py(250B)
----docs()
--------settings.md(652B)
--------serialization.md(3KB)
----LICENSE(1KB)
----src()
--------__init__.py(0B)
--------easy_response()
----requirements.txt(6B)
----setup.py(771B)
----.gitignore(315B)
----README.md(1018B)