摘要: ###1. 填充管理留言html ```html {% if user.messages %} 序号 留言 时间 操作 {% for message in user.messages %} {{ loop.index }} {{ message.content }} {{ message.mdate 阅读全文
posted @ 2023-06-01 17:58 测试圈的彭于晏 阅读(28) 评论(0) 推荐(0)
摘要: ```python # 前提: settings.py已经配置链接了数据库 # 两张表想要互相调用 必须定义主外键约束,外键定义在多的一方 ``` ![](https://img2023.cnblogs.com/blog/2663107/202305/2663107-2023053115052619 阅读全文
posted @ 2023-06-01 17:57 测试圈的彭于晏 阅读(40) 评论(0) 推荐(0)
摘要: ###1. 配置bootstrap模板 ```python # 中文文档: https://flask-bootstrap-zh.readthedocs.io/zh/latest/ # 样式文档: https://v3.bootcss.com/getting-started/#download # 阅读全文
posted @ 2023-06-01 17:57 测试圈的彭于晏 阅读(59) 评论(0) 推荐(0)