上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 59 下一页
摘要: 原因 Flask购物网站中,每点击货物一次,数据库中货物的浏览次数+1,默认浏览次数为NULL,故无法完成运算 解决 将数据库中相应字段默认值设为0,注意要先断开数据库连接 阅读全文
posted @ 2020-09-21 23:07 cxc1357 阅读(2595) 评论(0) 推荐(0)
摘要: 概述 Flask采用MVT模型,即Model, Template, View Model:定义数据的存储格式,并且提供了数据库访问的API View:定义那些数据被显示,是业务逻辑处理模块 Template:定义数据如何被显示 实例1(简单实例) 在项目文件夹创建虚拟环境,安装依赖包 virtual 阅读全文
posted @ 2020-09-21 16:44 cxc1357 阅读(398) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/huanglianggu/article/details/81263865 阅读全文
posted @ 2020-09-21 10:22 cxc1357 阅读(290) 评论(0) 推荐(0)
摘要: Python Flask 开发购物网站,提交订单时报错 根据提示,检查代码,发现是字段名拼写错误导致,数据库对应的字段是receive_name,误写成了recevie_name 另外要注意,灰色字和html文件中获取的字段名也要对应一致,否则会报其他错误 阅读全文
posted @ 2020-09-21 01:37 cxc1357 阅读(688) 评论(0) 推荐(0)
摘要: 问题 Python Flask做的购物网站,添加购物车时,提示错误 解决 检查发现是MySQL中不正常的空数据导致,删除此条记录即可 参考 https://www.jb51.cc/python/186119.html 阅读全文
posted @ 2020-09-21 01:03 cxc1357 阅读(815) 评论(0) 推荐(0)
摘要: 原因 代码中混用了Tab和4个空格 参考 https://blog.csdn.net/dongdong9223/article/details/82745068 阅读全文
posted @ 2020-09-19 01:27 cxc1357 阅读(135) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/smbluesky/article/details/82427121 阅读全文
posted @ 2020-09-19 01:07 cxc1357 阅读(304) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/weixin_30454481/article/details/97108510 阅读全文
posted @ 2020-09-18 16:47 cxc1357 阅读(295) 评论(0) 推荐(0)
摘要: 参考 https://www.cnblogs.com/huangguoming/p/11732663.html 阅读全文
posted @ 2020-09-18 08:35 cxc1357 阅读(200) 评论(0) 推荐(0)
摘要: 参考 https://www.jianshu.com/p/b6e52b80653f 阅读全文
posted @ 2020-09-17 15:17 cxc1357 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 59 下一页