会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tslam
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
49
下一页
2022年9月6日
filter() argument after ** must be a mapping
摘要: 见下图
阅读全文
posted @ 2022-09-06 12:03 tslam
阅读(12)
评论(0)
推荐(0)
2022年9月5日
QuerySet.update 方法不会调用 save()方法; from django.db import models中类Model的save()方法
摘要: 1 2 问题: 我在执行修改models.Student.objects.filter(pk=8).update(**{'name':'他的姓名178', 'desc':'desc179'}),后拼音没有更改 背景code """ class Student(models.Model): c_nam
阅读全文
posted @ 2022-09-05 10:18 tslam
阅读(59)
评论(0)
推荐(0)
2022年9月2日
The requested resource was not found on this server
摘要: 设置settings中 DEBUG = True
阅读全文
posted @ 2022-09-02 19:00 tslam
阅读(345)
评论(0)
推荐(0)
2022年9月1日
关于request.POST
摘要: 传过来的都是QueryDict对象, 字符串类型数据 见下图
阅读全文
posted @ 2022-09-01 09:55 tslam
阅读(34)
评论(0)
推荐(0)
2022年8月31日
Object of type 'Decimal' is not JSON serializable
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 报这个错是因为json.dumps函数发现字典里面有 Decimal类型的数据,无法JSON serializable解决方法:是检查到Decimal类型的值转化
阅读全文
posted @ 2022-08-31 18:45 tslam
阅读(1225)
评论(0)
推荐(0)
TypeError: Object of type 'bytes' is not JSON serializable
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 代码 import json class BytesEncoder(json.JSONEncoder): def default(self, obj): if i
阅读全文
posted @ 2022-08-31 18:41 tslam
阅读(1450)
评论(0)
推荐(0)
json 中文显示
摘要: json.dumps(a, ensure_ascii=False) #带上ensure_ascii=False这个参数
阅读全文
posted @ 2022-08-31 18:16 tslam
阅读(40)
评论(0)
推荐(0)
ModuleNotFoundError: No module named 'app01'
摘要: 如下图:
阅读全文
posted @ 2022-08-31 14:37 tslam
阅读(739)
评论(0)
推荐(0)
关于应用注册、路由、路由分发
摘要: 如下:
阅读全文
posted @ 2022-08-31 14:16 tslam
阅读(24)
评论(0)
推荐(0)
django.core.exceptions.ImproperlyConfigured: Cannot import xxx
摘要: 转载于 https://blog.csdn.net/leedcandd/article/details/119920350
阅读全文
posted @ 2022-08-31 10:51 tslam
阅读(79)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
49
下一页
公告