摘要: JOIN 连接:分为内连接、左连接和右连接。 在sql语句中,关键字分别是: 内连接:inner join 或 join 左连接: left join 右连接: right join 其中,内连接表示交集,如图所示: 阅读全文
posted @ 2021-09-24 15:20 罐罐lll 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 当遇到Internal Server Error The server encountered an internal error and was unable to complete your reque问题时,将is_authenticated()换成is_authenticated,如下图所示 阅读全文
posted @ 2020-03-16 20:59 罐罐lll 阅读(289) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom urllib.parse import urlencode# requests内置的状态码,可判断url响应是否正确from requests import codesimport osfrom hashlib import md5from multiproc 阅读全文
posted @ 2019-10-05 18:32 罐罐lll 阅读(812) 评论(0) 推荐(0) 编辑
摘要: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration experiment.0006_auto_20190303_1008 is applied before its dependency tiku.0010_ 阅读全文
posted @ 2019-03-04 15:59 罐罐lll 阅读(335) 评论(0) 推荐(0) 编辑
摘要: #从数据库中选择数据sub_sy2_zts = Sub_SY2_ZT.objects.filter(student=request.user)sub_sy2_chooses = Sub_SY2_Choose.objects.filter(student=request.user)sub_sy2_TK 阅读全文
posted @ 2019-02-27 20:41 罐罐lll 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: 在之前开发项目过程中,进行过多次数据迁移,但是隔了一段时间再打开后,进行数据迁移时发生了”TypeError: expected string or bytes-like object“类型的错误。原因可能是数据库版本更换之后,引起的程序内部的编码不一致的问题,由于之前迁移时存在了记录,因此导致的编 阅读全文
posted @ 2019-02-26 14:59 罐罐lll 阅读(17769) 评论(0) 推荐(2) 编辑