09 2022 档案

摘要:POST方式: if request.method == 'POST': body_str = request.body.decode('utf-8') post_data = parse_qs(body_str) post_dict = {} for k, v in post_data.items 阅读全文
posted @ 2022-09-21 17:50 门徒21 阅读(66) 评论(0) 推荐(0)
摘要:request.GET.get接收的是空字典。 处理办法: data_json = json.loads(request.body) product = data_json.get('product') 阅读全文
posted @ 2022-09-21 15:49 门徒21 阅读(24) 评论(0) 推荐(0)
摘要:vue上服务器后因为插件原因报错: AttributeError: ‘str‘ object has no attribute ‘decode‘ 解决办法: str.encode('utf-8').decode('utf-8') 阅读全文
posted @ 2022-09-14 18:14 门徒21 阅读(30) 评论(0) 推荐(0)
摘要:nohup python manage.py runserver 0.0.0.0:80 > run.log 2>&1 &通过ps -ef |grep python获取Python进程号然后kill - 9进程号查看进程: ps -ef|grep "python"杀死进程: kill -9 3435 阅读全文
posted @ 2022-09-14 18:10 门徒21 阅读(45) 评论(0) 推荐(0)