腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:'
NoneType
‘
对象
没有
’
get
‘
属性
(
MongoDB
和
Django
)
python
、
django
、
mongodb
我们在项目中使用了
MongoDB
和
Django
,有些列有some_col元素,有些列
没有
some_col元素,也许这就是为什么我们会得到
AttributeError
: '
NoneType
' objecthas no attribute '
get
'的错误,有
没有
解决这个错误的方法?def
get
_col(self, name, **kwargs): where = {'name&
浏览 23
提问于2020-07-26
得票数 0
回答已采纳
1
回答
运行了一段时间后,
NoneType
‘object’在
Django
中
没有
属性
‘object’
python
、
django
最近,我将
Django
1.8迁移到
Django
1.11,一切似乎都正常工作,但在生产中,在正常运行了一段时间之后,
Django
开始返回如下消息:用户不能继续使用应用程序,每个操作都返回一个“内部服务器错误”(全部与'
浏览 0
提问于2018-12-18
得票数 1
1
回答
如何解决调用防火墙客户端时的grpc错误
python
、
google-app-engine
、
google-cloud-firestore
、
fastapi
有时,有些调用(50次中的1次)由于此错误而失败: at .google.python.pip/pip/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py
浏览 13
提问于2022-08-24
得票数 0
3
回答
AttributeError
:“”
NoneType
“”
对象
没有
属性
“”
get
“”
python
、
tkinter
、
attributeerror
我正在编写一个函数,它从tkinter库中获取一个textbox
对象
作为参数。当我填写文本框并点击按钮时,我会得到save_file: impo
浏览 3
提问于2014-10-25
得票数 0
回答已采纳
2
回答
AttributeError
:“
NoneType
”
对象
没有
属性
“
get
”
reactjs
、
flask
、
axios
}) });在后端:def handle_seeds(user_id):
Att
浏览 5
提问于2019-09-25
得票数 1
回答已采纳
1
回答
'
NoneType
‘
对象
没有
属性
'
get
':
AttributeError
python
、
amazon-web-services
、
aws-lambda
、
stripe-payments
我收到错误:'
NoneType
‘
对象
没有
属性
'
get
':
AttributeError
。PLease帮我弄清楚了。stripe-secret']def lambda_handler(event, context): phone = event.
get
(
浏览 10
提问于2020-06-23
得票数 0
1
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'userprofile’
python
、
attributes
、
nonetype
clicked()"),self,QtCore.SLOT("AddMemoFromTextEntry()")) for
浏览 2
提问于2013-07-09
得票数 1
1
回答
如何防止
django
模型中任何输入记录的编辑
python
、
django
我有一个条件,在我的应用程序中,我希望阻止编辑在某些
django
模型中输入的记录。同时,我希望允许添加相同的权限,也允许允许查看模型的现有记录。class ReadOnlyAdmin(admin.ModelAdmin): def
get
_readonly_fields(self, requestCompanyAdmin(ReadOnlyAdmin): 如果为has_add_permi
浏览 2
提问于2014-10-06
得票数 0
1
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'
get
’-
get
。(“href”)
python
、
beautifulsoup
、
python-requests
嗨,我想从"href“获取url,我收到了一个错误-
AttributeError
:'
NoneType
‘
对象
没有
属性
'
get
’当我跑的时候site url = site.find('a', {'class
浏览 3
提问于2022-08-09
得票数 0
回答已采纳
1
回答
Caffe :astype:'
NoneType
‘
对象
没有
'astype’
属性
python
、
attributes
、
caffe
、
faster-rcnn
AttributeError
:在_
get
_image_blob的文件../lib/fast_rcnn/test.py的第35行中,'
NoneType
‘
对象
没有
'astype’
属性
im_orig =im.astype(np.float32,copy=True) 存在
AttributeError
:‘
NoneType
’
对象
没有
'astype‘
属性</em
浏览 22
提问于2021-07-21
得票数 0
1
回答
Brownie
AttributeError
:'
NoneType
‘
对象
没有
属性
'
get
’
brownie
、
configuration
brownie\_config.py", line 272, in _load_project_structure_config
AttributeError
: '
NoneType
' object has no attribute '
get
' 我不知道它为什么找不到这些文件。
浏览 0
提问于2021-11-08
得票数 2
1
回答
Flasgger
AttributeError
:'
NoneType
‘
对象
没有
属性
'
get
'?
python
、
flask
、
swagger
、
flasgger
- - [31/Jan/2018 16:38:10] "
GET
/apidocs/ HTTP/1.1" 200 -
AttributeError
: '
NoneType
' object has no attribute '
get
'def init
浏览 0
提问于2018-01-31
得票数 0
回答已采纳
2
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'
get
’- Python
python
、
function
、
orm
、
openerp
我需要从另一个
对象
( purchase.order )中读取一个字段,这个字段是一个选择类型字段,所以如果这个字段有si,那么执行_
get
_product_available_func(('done')_
get
_product_available_func(('done')) return valdef
浏览 2
提问于2013-07-28
得票数 4
回答已采纳
1
回答
Django
模板- " template“
对象
没有
"split”
属性
django
、
django-templates
、
jinja2
我正在使用jinja2在
django
中呈现一个模板: 模板设置: TEMPLATES = [ "BACKEND": "
django
.template.backends.
django
.DjangoTemplates", "
django
.contrib.aut
浏览 9
提问于2019-03-23
得票数 0
回答已采纳
1
回答
AttributeError
:'
NoneType
‘
对象
没有
'_meta’
Django
属性
django
、
meta
、
nonetype
_meta.concrete_fields:
AttributeError
:'
NoneType
‘
对象
中的for字段
没有
属性
'_meta’ 在这一部分 OrderItem.save(food_statuschef_view = OrderItem.objects.all() food_status = request.POST.
get
浏览 16
提问于2019-05-11
得票数 0
回答已采纳
5
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'attname’(
Django
)
django
、
django-models
我有一个相当复杂的模型,对MyModel.objects.create(**kwargs)的第一次调用失败了
django
/db/models/manager.py:85: in manager_method return getattr(self.
get
_qu
浏览 13
提问于2017-09-22
得票数 17
回答已采纳
2
回答
Django
:
AttributeError
:'
NoneType
‘
对象
没有
属性
’拆分‘
python
、
django
、
python-3.x
、
static-site
、
django-commands
显然,我的'
NoneType
‘
对象
没有
属性
’拆分‘,但我不知道那个'
NoneType
’
对象
是什么。, in **extra)
Attri
浏览 1
提问于2016-01-03
得票数 12
回答已采纳
3
回答
Django
-
AttributeError
:'
NoneType
‘
对象
没有
属性
’方法‘
python
、
django
、
python-3.x
、
django-models
、
django-rest-framework
我注意到,当我使用DRF文档时,我得到了错误
AttributeError
: '
NoneType
' object has no attribute 'method',这与这一行相关,如果self.request.methodline 31, in
get
django
", line
浏览 8
提问于2017-10-30
得票数 3
回答已采纳
2
回答
Django
: username:'
NoneType
‘
对象
没有
’
AttributeError
‘
属性
django
、
attributeerror
'content': message.content, }该错误似乎也存在于我的models类中的返回函数中 我读过其他的帖子或者如何以正确的方式定义
和</e
浏览 1
提问于2020-12-20
得票数 1
2
回答
SQLAlchemy无法连接本地主机上的Postgresql
postgresql
、
sqlalchemy
、
flask-sqlalchemy
_.py", line 797, in
get
_engine11:58:18 web.1 |apply_driver_hacks11:58:18 web.1 |
AttributeError
: '
NoneType
' object has no
浏览 7
提问于2013-10-30
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
djongo:Django和MongoDB连接器
python渐进-类4
Python进阶——什么是描述符?
Django基础:Request对象详解及开发显示用户IP地址和浏览器APP
Django 框架-请求与响应
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券