腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
位于
/
mobile
/
7
/
AttributeError
/ '
tuple
‘
对象
的
删除
没有
属性
'_
meta
’
django
我正在尝试从项目中
删除
项,但出现错误。有趣
的
是,它正在
删除
该项,但给出了上面提到
的
错误。views.py: def delete_
mobile
(request,
mobile
_id): return render(request,
浏览 11
提问于2020-07-28
得票数 0
回答已采纳
1
回答
AttributeError
at / '
tuple
‘
对象
没有
属性
'_
meta
’
python
、
django
、
django-forms
form = SurveyForm(instance=survey)class SurveyForm(forms.ModelForm): 'drPlan' : forms.Select(attrs={'class' : 'form-control'}),我真的不明白为什么它不起作用,我也
没有
看到任何错误
的
逗号任何最受欢迎
的
帮助。_
meta</
浏览 3
提问于2017-10-11
得票数 2
回答已采纳
1
回答
Django表单
AttributeError
:'
tuple
‘
对象
没有
属性
'_
meta
’
python
、
django
我有个这样
的
django模型- date = models.DateField() return self.date + " " + " " +self.total_priceclass transactionForm(forms.ModelForm
浏览 0
提问于2017-04-14
得票数 2
1
回答
AttributeError
:'
tuple
‘
对象
在Django中
没有
属性
'_
meta
’错误
python
、
django
、
forms
、
view
我试图创建一个在django注册
的
网页,但是我无法避免这个错误:文件“C:\ "C:\UsersLocal\Programs\Python\Python36\lib\site-packages\django\forms\models.py",\tonik\OneDrive\Plocha\Python第
7
行_
meta
AttributeError
中:'
tuple
‘<em
浏览 2
提问于2019-05-07
得票数 2
1
回答
用户表单
的
Django错误:
AttributeError
:'
tuple
‘
对象
没有
属性
'_
meta
’
python
、
django
、
authentication
我按照这个教训使用Django创建了一个用户寄存器,他编写了如下代码,就像我所做
的
那样: username = forms.CharFieldforms.PasswordInput(attrs={'class': 'form-control my-2', 'placeholder': 'Confirm Password'}))
A
浏览 5
提问于2022-05-03
得票数 0
回答已采纳
1
回答
位于
/
AttributeError
/signup/ 'Person‘
对象
的
帐户
没有
属性
'
META
’
python
、
django
当我尝试注册一个新用户时,页面返回一个
AttributeError
,如下所示:我使用
的
是一个自定义模型,下面是我
的
models.py和forms.py: model = Person fields = ('username', 'first_name', 'last_name', 'email','password1',
浏览 12
提问于2018-01-08
得票数 1
1
回答
Django错误:
位于
- 'Manager‘
对象
的
AttributeError
没有
'
META
’
属性
mysql
、
django
、
models
、
django-managers
我使用
的
是django 1.4和python 2.7def myRequests(request): return response
AttributeError
at /myRequ
浏览 1
提问于2013-07-02
得票数 1
回答已采纳
2
回答
位于
/ '
tuple
‘
对象
的
AttributeError
在Django中
没有
'get’
属性
python
、
django
我在/ '
tuple
‘
对象
上有一个
AttributeError
,
没有
'get’
属性
,下面是跟踪路径,在Django中可能有什么问题?
AttributeError
at / Request URL: http://www.example.co
浏览 8
提问于2017-02-19
得票数 0
3
回答
迭代2D列表以
删除
第一个和最后一个元素
python
我有两份名单: b = [(1,5),(
7
,
7
),(2,9),(0,3)]for idx, f in enumerate(a): print(f[idx].pop()) print(g[idx].pop(0)) print(g[i
浏览 3
提问于2020-05-20
得票数 0
回答已采纳
1
回答
将Django queryset序列化为JSON:获取
AttributeError
'
tuple
‘
对象
没有
属性
'_
meta
’
python
、
django
我用
的
是Django 1.8这是我
的
看法:query = "SELECT * FROM frontend_chemicalcursor.fetchall()return JsonResponse(serializers.serialize('json', data), safe=False)
AttributeError
at /api/1.0/bnf_code
浏览 7
提问于2015-04-14
得票数 0
回答已采纳
1
回答
将元组传递给另一个文件中
的
函数
python
、
python-3.x
我试图从另一个文件将包含一组字符串和数字('People',14,‘Animals,82)
的
元组传递到一个定义中,但是当我试图将它传递给定义时,它会返回一个错误。我试图在另一个文件中传递元组
的
函数是:def
tuple
_valid(self,t):t = ('People', 14, 'Animals', 82) TF_check
浏览 9
提问于2022-04-24
得票数 0
4
回答
json
的
Django问题:'
tuple
‘
对象
没有
属性
'_
meta
’
python
、
json
、
django
我正在尝试将数据从queryset导出到不同
的
文件格式,并且我遇到了json格式
的
问题。这是我
的
小代码:Exception V
浏览 0
提问于2018-10-10
得票数 1
回答已采纳
1
回答
如何使用python解析苹果音乐
python
、
parsing
requests.get(url)soup = BeautifulSoup(html, 'html.parser')# file.write(applelinks) file.write(link.
浏览 1
提问于2021-10-10
得票数 0
1
回答
当我尝试对元组排序列表时,如何使用拆分()操作符?
python
我有一些元组
的
列表:sorted(a, key=lambda x: int(x.strip()[0])) 但我有
AttributeError</em
浏览 2
提问于2019-09-22
得票数 1
回答已采纳
1
回答
AttributeError
:使用SqlAlchemy
的
“
tuple
”
对象
没有
属性
“drivername”
python
、
mysql
、
sqlalchemy
、
flask
、
flask-sqlalchemy
我试图使用连接到一个MySQL数据库,下面是我
的
参数:但当我进入网址时,我会发现以下错误: 如果我将SQLALCHEMY_DATABASE_URI注:我也尝试了mysql+m
浏览 0
提问于2013-10-08
得票数 4
回答已采纳
1
回答
位于
/
AttributeError
/‘
AttributeError
’
对象
的
配置文件
没有
属性
‘
对象
python
、
django
这是我
的
views.py文件,但我一直收到这个错误,这可能是什么问题。 Profile是models.py代码中
的
一个类。如果你需要我
的
代码
的
另一部分,请问 from django.shortcuts import render, redirect 'p_form': p_form, return render(request, "users/p
浏览 27
提问于2021-11-06
得票数 0
1
回答
Django Rest框架-创建ForeignKey查找字段
django
、
django-rest-framework
models.CASCADE) queryset=Song.objects.all(), slug_field='slug' class
Meta
LikedSong.objects.get_or_create(user=self.context['requ
浏览 18
提问于2021-01-16
得票数 0
回答已采纳
1
回答
位于
/ 'QuerySet‘
对象
的
用户
没有
属性
’
AttributeError
‘
python
、
django
、
django-queryset
、
attributeerror
我不知道为什么我会收到这个错误我是新来
的
姜戈我研究了很多,但我
没有
找到答案请在给我答案
的
时候尽可能多地解释我想学
的
东西但是如果你不想没问题谢谢,这是我
的
Views.py from django.views.genericoperation == 'remove': return redirect('home:home') 这是我
的
models.
浏览 8
提问于2020-10-01
得票数 0
回答已采纳
2
回答
‘'long’
对象
没有
属性
'title‘
python
、
json
、
django
、
django-rest-framework
"test", "create_date": 1451268678,} 我需要得到相关
的
新闻
对象
到new_id和相关
的
用户
对象
到fields = ('comment_id','news','user','comment','liked',&
浏览 2
提问于2016-01-03
得票数 0
2
回答
如何将字典
的
值写入CSV文件
python
、
csv
、
export-to-csv
这是我
的
Python版本:>> [GCC 8.3.0:“列表”
对象
没有
属性
“键” w.writerows(my_dict)
AttributeError
:'str‘
对象
没有
属性
’key
浏览 4
提问于2020-02-27
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
必背Python单词:常用报错提示单词20个
python如何获取多个excel单元格的值
Python对象属性的那些事
【入门】Python的绑定
python渐进-类4
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券