当前位置:网站首页>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
边栏推荐
- Learning summary of time complexity and space complexity
- State compression DP Mondrian's dream
- 一文搞懂ES6基本全部语法
- Hilbert 变换与瞬时频率
- Google Play APK 上传其他国际应用商店
- 一篇万字博文带你入坑爬虫这条不归路 【万字图文】
- Deep learning | matlab implementation of TCN time convolution neural network spatialdropoutlayer parameter description
- How to smoothly go online after MySQL table splitting?
- MySQL stored procedure realizes the creation of a table (copy the structure of the original table and create a new table)
- 图扑软件亮相 2022 福州数博会,携手共创数字新时代
猜你喜欢
随机推荐
线程锁及锁的升降级
Time series prediction | MATLAB realizes time series prediction of TCN time convolution neural network
20220728 sorting strings that are not pure numbers
Thread lock and its ascending and descending levels
写作作业一
Recommended Spanish translation of Beijing passport
Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation
FLV文件简介
The digitalization of the consumer industry is upgraded to "rigid demand", and weiit's new retail SaaS empowers enterprises!
ActiveMQ basic details
Django使用MySQL数据库已经存在的数据表方法
A new generation of ultra safe cellular battery, Sihao aipao, is on the market, starting from 139900
Brushless DC motor controller (how much is the hall charge for changing the motor)
How to carry out engineering implementation of DDD Domain Driven Design
IT硬件故障的主要原因和预防的最佳实践
[target detection] Introduction to yolor theory + practical test visdrone data set
Hilbert transform and instantaneous frequency
Day2:三种语言暴刷牛客130题
LeTax记录\documentclass{},authoryear属性使用
Machine learning | matlab implementation of RBF radial basis function neural network Newrbe parameter setting









![[idea] where to use the query field](/img/63/f95868907364fc949885c67c34ba32.png)