摘要:
urlencoded:form表单和ajax提交数据的默认编码格式 form-data:传文件 application/json:json格式数据 >>> 前后端分离 urlencoded() >>> username=jason&password=123 form-data application 阅读全文
posted @ 2019-05-07 18:57
夜晚的潜水艇
阅读(312)
评论(0)
推荐(0)
摘要:
import requestsform bs4 import BeautifulSoup 阅读全文
posted @ 2019-05-07 11:12
夜晚的潜水艇
阅读(523)
评论(0)
推荐(0)
摘要:
from django.cintrib import auth #登录模块 只要用auth模块一旦登录 就可以在项目的任意地方用request.user 拿到当前的用户对象 再通过 request.user.username 拿到当前用户名 或者 通过 request.user.password 拿 阅读全文
posted @ 2019-05-07 11:08
夜晚的潜水艇
阅读(266)
评论(0)
推荐(0)
摘要:
authors = request.POST.getlist("authors") print(authors) 得到一串作者的名字 阅读全文
posted @ 2019-05-07 11:00
夜晚的潜水艇
阅读(659)
评论(0)
推荐(0)
摘要:
直接上图 阅读全文
posted @ 2019-05-07 10:56
夜晚的潜水艇
阅读(281)
评论(0)
推荐(0)

浙公网安备 33010602011771号