日常bug
m0_7Ella
喜欢记录学习到过程!
展开
-
Unable to start debugging. Unexpected GDB output from command“-environment-cd C:xxx,11:No such file
Unable to start debugging. Unexpected GDB output from command"-environment-cd C:xxx,11:No such file原创 2023-12-20 15:17:40 · 974 阅读 · 0 评论 -
使用vscode编写c语言——存在正文时不允许未命名的原型参数C/C++(141)
使用vscode编写c语言——存在正文时不允许未命名的原型参数C/C++(141)原创 2023-11-27 20:15:23 · 962 阅读 · 0 评论 -
使用vscode中编写c语言——无法打开 源 文件 “stdlib.h“C/C++(1696)问题
使用vscode中编写c语言——无法打开 源 文件 "stdlib.h"C/C++(1696)问题原创 2023-11-27 20:08:57 · 6599 阅读 · 7 评论 -
css文本超过1行,使用省略号
/文字隐藏部分显示省略号。原创 2023-05-07 20:30:07 · 163 阅读 · 0 评论 -
MySQL Workbench 报错:Could not acquire management access for administration
解决MySQL Workbench 报错:Could not acquire management access for administration原创 2023-04-19 15:47:10 · 8603 阅读 · 7 评论 -
local variable ‘pwd1‘ referenced before assignment
local variable 'pwd1' referenced before assignment原创 2023-05-22 15:40:12 · 160 阅读 · 2 评论 -
TypeError at /login/Object of type major is not JSON serializable
是这样的,学生表与院系表是多对一的关系,当以学生的身份进入系统时,只能进入学生的页面,并且用request.session[]记入学生的信息,比如学号、姓名、学院、专业等,但是用request.session['dm']记入学生的学院,用request.session['major_name']=user.major_name记入学生的专业时,就出现了如上的错误。因此,把它改成这样就可以了request.session['major_name']=原创 2023-06-06 21:23:50 · 67 阅读 · 0 评论 -
ValueError at saddCannot assign ““. “student.department name“ must be a “department“ instance
ValueError at saddCannot assign "". "student.department name" must be a "department" instance原创 2023-06-04 19:04:51 · 152 阅读 · 0 评论 -
TemplateSyntaxError :Could not parse the remainder: ‘stu_obj.stu_id‘ from ‘‘makers:sdel‘stu_obj.st_i
TemplateSyntaxError :Could not parse the remainder: 'stu_obj.stu_id' from ''makers:sdel'stu_obj.st_id’原创 2023-06-04 16:02:32 · 151 阅读 · 0 评论 -
Reverse for ‘supdate‘ with arguments ‘(‘‘,)‘ not found. 1 pattern(s) tried: [‘makers/supdate/(?P<ed
Reverse for 'supdate' with arguments '('',)' not found. 1 pattern(s) tried: ['makers/supdate/(?P原创 2023-06-03 17:03:16 · 142 阅读 · 1 评论 -
1091 - Can‘t DROP ‘makerapp_dasses_major id bbceOfa8_fk_makerapp_major_major_id‘; check that column/
在设置外键的时候总是遇到这样的报错,经过上网查资料知道,在设置外键的时候最好先把每个表都弄一些数据,尤其是父表(被参照表)里有的在子表中一定要有,可避免不少的麻烦。然后就是要注意,当设置外键的违约处理时,一定要注意,如果违约处理设置为SET NULL,一定要在字段设置那里对应上,不打勾,可以为空。原创 2023-05-29 22:53:30 · 46 阅读 · 1 评论 -
数据库建立外键的时候报错:1452Cennot add or update a child row: a foreign key constraint fails (cmissql.#sql-1d24
在这里把需要的开一下就可以了。原创 2023-05-29 18:30:32 · 465 阅读 · 0 评论 -
ValueError at /loginuser/The view newuser.views.loginuser didn‘t return an HttpResponse object.
ValueError at /loginuser/The view newuser.views.loginuser didn't return an HttpResponse object.原创 2023-05-22 15:02:34 · 161 阅读 · 2 评论 -
报错:OperationalError: no such table: django_session
解决报错:OperationalError: no such table: django_session原创 2023-04-19 17:40:47 · 364 阅读 · 1 评论 -
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
解决python安装PIL库报错问题ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)原创 2023-04-19 16:40:42 · 1138 阅读 · 1 评论