当前位置:网站首页>Flash reports an error: type object 'news' has no attribute' query 'the view name is duplicate with the model name
Flash reports an error: type object 'news' has no attribute' query 'the view name is duplicate with the model name
2022-07-29 01:24:00 【:D...】
Project scenario :
Use flask frame operation SQLAlchemy Error in table query data
type object 'News' has no attribute 'query'
“ 'News’ Not in it ’query’ Attribute method ”
Screenshot of error reporting
Cause analysis :
The view name and the name of the model class are duplicated
Solution :
Change the view name Modify the view name in the route
边栏推荐
- Bracket matching test
- [ManageEngine] help Harbin Engineering University realize integrated monitoring and management of network traffic
- 20220728 sorting strings that are not pure numbers
- Interviewer: programmer, please tell me who leaked the company interview questions to you?
- [idea] where to use the query field
- Return the member function of *this
- js判断 数组/对象数组 1 是否包含数组/对象数组 2
- QT static compiler (MinGW compilation)
- log4j动态加载配置文件
- Self made | a 16 bit RISC architecture CPU is self-made by hand
猜你喜欢
Hilbert transform and instantaneous frequency
The digitalization of the consumer industry is upgraded to "rigid demand", and weiit's new retail SaaS empowers enterprises!
【mysql】多指标历史累计去重问题
Docker-compose安装mysql
大页内存原理及使用设置
Canal实时解析mysql binlog数据实战
如何处理项目中的时间、范围和成本限制?
【idea】查询字段使用位置
表达式求值
Google play APK uploads other international app stores
随机推荐
Y80. Chapter 4 Prometheus big factory monitoring system and practice -- Kube state metrics component introduction and monitoring extension (XI)
Main causes of IT hardware failures and best practices for prevention
【ManageEngine】局域网监控软件是什么,有什么作用
App access kakaotalk three party login
System Verilog common syntax
RHCE命令练习(一)
Rewriting method set
【Jenkins笔记】入门,自由空间;持续集成企业微信;allure报告,持续集成电子邮件通知;构建定时任务
Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)
Bracket matching test
可视化全链路日志追踪
Flask project architecture (First Edition
uniapp createSelectorQuery().select 获取返回null报错
ActiveMQ basic details
Recommended Spanish translation of Beijing passport
大页内存原理及使用设置
Tupu software appeared at the 2022 Fuzhou digital Expo to jointly create a new digital era
[ManageEngine] what is the LAN monitoring software and what is its function
Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation
C语言300行代码实现扫雷(可展开+可标记+可更改困难级别)