当前位置:网站首页>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
边栏推荐
- [Commons lang3 topic] 003- randomstringutils topic
- Django uses the existing data table method of MySQL database
- MySQL stored procedure realizes the creation of a table (copy the structure of the original table and create a new table)
- Letax record \documentclass{}, authoryear attribute is used
- 北京护照西班牙语翻译推荐
- LeTax记录\documentclass{},authoryear属性使用
- 【mysql】字符串转int
- Interviewer: programmer, please tell me who leaked the company interview questions to you?
- ActiveMQ基本详解
- Instruction rearrangement, happens before, as if serial
猜你喜欢

Flink SQL Hudi 实战

Canal实时解析mysql binlog数据实战

18张图,直观理解神经网络、流形和拓扑

括号匹配的检验

Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)

表达式求值

Recommended Spanish translation of Beijing passport

The digitalization of the consumer industry is upgraded to "rigid demand", and weiit's new retail SaaS empowers enterprises!

DocuWare 移动劳动力解决方案可帮助您构建新的生产力模式:随时随地、任何设备

面试官:程序员,请你告诉我是谁把公司面试题泄露给你的?
随机推荐
Classification prediction | MATLAB realizes time series classification prediction of TCN time convolution neural network
Self-attention neural architecture search for semantic image segmentation
【SQL之降龙十八掌】01——亢龙有悔:入门10题
进程和线程知识点总结 2
[unity] configure unity edit C as vscode
Return the member function of *this
(完美解决)为什么在train/val/test数据集上用train模式效果都很好,但是在eval模式下全部很差
一文让你搞懂MYSQL底层原理。-内部结构、索引、锁、集群
System Verilog common syntax
Introduction to FLV documents
How to implement the time impact analysis of the construction project?
QT static compiler (MinGW compilation)
Date conversion EEE MMM DD hh:mm:ss zzz YYYY
Closures and decorators
Time series prediction | MATLAB realizes time series prediction of TCN time convolution neural network
正则校验与时间格式化
如何执行建设项目的时间影响分析?
y80.第四章 Prometheus大厂监控体系及实战 -- kube-state-metrics组件介绍和监控扩展(十一)
Flink SQL Hudi actual combat
Naver three party login