2019年7月3日

摘要: 1. Models.py 创建数据表 1. settings.py 设置数据库连接 1. 安装pymysql和降低django版本(mysql和django对应版本有要求) 在命令行输入 pip install pymysql pip install django==2.0 1. 在__ init. 阅读全文
posted @ 2019-07-03 10:10 saiminhou 阅读(367) 评论(0) 推荐(0) 编辑
 
摘要: 一、页面实现 1. index.html 2. base.html 3. post.html 4. header.html 5. footer.html models.py 数据表的设计 数据表的迁移 在cmd中执行 views.py 方法的实现 url.py在url中注册路径 在界面中添加css或 阅读全文
posted @ 2019-07-03 10:08 saiminhou 阅读(284) 评论(0) 推荐(0) 编辑
 
摘要: 一、页面实现 1. index.html 2. base.html 3. post.html 4. header.html 5. footer.html models.py 数据表的设计 数据表的迁移 在cmd中执行 views.py 方法的实现 url.py在url中注册路径 在界面中添加css或 阅读全文
posted @ 2019-07-03 10:03 saiminhou 阅读(139) 评论(0) 推荐(0) 编辑