上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 50 下一页
摘要: 经测试,不会将原来其他表的数据清除. 阅读全文
posted @ 2022-08-12 14:50 tslam 阅读(20) 评论(0) 推荐(0)
摘要: gangzi: 不要用choices,这个到时你想再添加还得在代码里添加,比较麻烦. 阅读全文
posted @ 2022-08-12 08:54 tslam 阅读(14) 评论(0) 推荐(0)
摘要: 最稳妥的办法: step1 本地右键删除要删除的文件夹、文件 step2 git add .或git add 路径文件名 step3 git commit -m '注释' step4 git pull step5 git push origin master 若这时查看远程仓库没有删除 检查是否其被 阅读全文
posted @ 2022-08-11 09:30 tslam 阅读(34) 评论(0) 推荐(0)
摘要: 1 看官方文档 2 百度关键字,看别人总结的方法 如: Django Celery定时任务和时间设置 - 腾讯云开发者社区-腾讯云 (tencent.com) 3 请教同事、朋友 阅读全文
posted @ 2022-08-08 17:59 tslam 阅读(10) 评论(0) 推荐(0)
摘要: 路由是由两部分组成的, 出错不一定是前半部分的原因, 也有可能是后半部分的原因. 比如: 视图中有语法错误. 阅读全文
posted @ 2022-08-08 17:56 tslam 阅读(24) 评论(0) 推荐(0)
摘要: 无 阅读全文
posted @ 2022-08-08 00:57 tslam 阅读(11) 评论(0) 推荐(0)
摘要: xxx.objects.all() xxx.object.filter(条件)后不用跟all() 阅读全文
posted @ 2022-08-08 00:36 tslam 阅读(99) 评论(0) 推荐(0)
摘要: 可能原因 1 项目配置文件中数据库是否连接成别的了 2 应用是否注册到配置文件的INSTALLED_APPS中 3 查看迁移命令的执行结果 4 应用下有无migrations包 阅读全文
posted @ 2022-08-07 18:17 tslam 阅读(263) 评论(0) 推荐(0)
摘要: 1 参考1 https://blog.csdn.net/lpw_cn/article/details/84468606 参考2 https://blog.csdn.net/tudou0980/article/details/124445905 2 还有疑问直接百度‘标题关键字’ 阅读全文
posted @ 2022-08-07 17:20 tslam 阅读(51) 评论(0) 推荐(0)
摘要: 1 Django 操作mysql 参考地址: https://www.cnblogs.com/zhaoyingjie/p/9680842.html from django.db import connection cursor=connection.cursor() 自定义sql: #插入操作 cu 阅读全文
posted @ 2022-08-07 16:51 tslam 阅读(163) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 50 下一页