1 request.path_info

# 获取当前用户请求的url
# http://127.0.0.1:8000/customer/list/ ----> /customer/list/
# http://127.0.0.1:8000/customer/list/?age=19 ----> /customer/list/
print(request.path_info)

2 request.method

# 获取当前用户请求方式:(GET/POST)
print(request.method)

3 request.POST

# 获取当前用户POST请求数据
print(request.POST)
# <QueryDict: {'csrfmiddlewaretoken': ['jdoNHfaNRIBlLCM8QXbLJld8XP4UYehyh8ykrW4erOuB83aaFH3YNJQlnGzm7qo9'], 'username': ['123'], 'password': ['123']}> # 获取单个数据
request.POST.get('xx')
# 获取多个数据
request.POST.getlist('xx')

4 request.FILES

文件

最新文章

  1. 查询EBS中LOV的SQL语句
  2. [Android]实现类似微信的延迟加载的Fragment——LazyFragment
  3. Javascript数组方法(译)
  4. Linux如何删除以分号开头的文件
  5. wireshark抓包
  6. cocos2d-x 纹理研究
  7. js 注册手机摇动事件
  8. C#多线程,线程锁
  9. 【bzoj 3601】一个人的数论 (莫比乌斯反演+伯努利数)
  10. ArcGIS API For Javascript_4.8-渲染器Renderer
  11. [Alpha阶段]项目展示博客
  12. Mongodb到mysql数据库的数据迁移(Java,Windows)
  13. TP文件上传
  14. 遗忘Windows Server 2008R2密码的处理方法
  15. html样式表格
  16. JS 解析JSON实现导序
  17. [ZOJ3781]Paint the Grid Reloaded
  18. windows 10 WMI Provider Host 占用CPU过高的问题
  19. Authentication failed (rejected by the remote node), please check the Erlang
  20. tty linux 打开和设置范例

热门文章

  1. java的jvm学习
  2. win10 打开剪切板失败 拒绝访问 已解决!!
  3. andriod app更新
  4. NLP学习日记
  5. 《Makefile中变量的高级用法:变量的替换引用、变量的嵌套使用》
  6. 调度器43—migration 内核线程
  7. vue打包后打开index.html文件显示空白页问题
  8. python中的KeyError报错
  9. jenkins 2.282+Publish over ssh 1.22版本发布日志不能实时显示
  10. 推测执行 Speculative execution