腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(1200)
视频
沙龙
1
回答
1048
,“
列
'
last_name
‘不
能为
空
”
Django
AbstractUser
django
、
django-authentication
、
django-auth-models
我正在尝试为每个新帐户创建一个注册,使用从表单到视图的CreateView类基视图泛型的UserCreationForm,从我使用
AbstractUser
的自定义身份验证模型,但每次提交表单时,它都会给我这个错误:
1048
, "Column '
last_name
' cannot be null" 但我已经填写了
last_name
input 下面是我创建帐号的一些看法: class AccountCreateView().get_context_data(**kwargs)
浏览 16
提问于2020-12-25
得票数 0
3
回答
使用
django
-allauth保存自定义用户模型
python
、
django
、
django-models
、
django-allauth
我有
django
MyUser,有一个额外的字段:from
django
.contrib.auth.models import
AbstractUser
class SignupForm(forms.Form):
last_name
web.forms.SignupForm' 在提交SignupForm (属性MyUser.age字段被正
浏览 6
提问于2013-07-13
得票数 7
回答已采纳
1
回答
如何在注册表中添加名字和姓氏?
python
、
django
我正在使用
Django
,我定制了Auth系统,使其具有电子邮件注册,而不是用户名。from
django
.db import models username = models.CharField(max_length=255, unique=False, blank=Tru
浏览 0
提问于2021-04-04
得票数 0
1
回答
Django
/python:(
1048
,“
列
'date‘不
能为
空
”)
django
、
django-models
、
django-forms
、
django-views
我已经创建了一个
Django
项目,在这个项目中,type-1用户可以创建一个Post,而类型2的用户可以在post_queryset = Post.objects.filter(accepted=False但是,当我保存accept_bid实例时,它会引发一个IntegrityError:(
1048
,“
列
'date‘不
能为
null")。_mysql.connection.query(self, query) During handling of the above exception ((
1
浏览 15
提问于2016-08-08
得票数 0
回答已采纳
1
回答
Django
:
1048
,“
列
'category_id‘不
能为
空
”
django
这是我的代码: sub_category_set = ItemSubcategory(name = page_item['slottype'])else: ni.su
浏览 0
提问于2013-07-08
得票数 0
回答已采纳
1
回答
Django
:(
1048
,“
列
'user_id‘不
能为
空
”)
python
、
mysql
、
django
models.ForeignKey(User) return comments.comment_textfrom
django
浏览 2
提问于2014-12-20
得票数 1
回答已采纳
1
回答
错误
1048
在Mysql查找表中,
列
不
能为
空
--缺少什么?
mysql
、
lookup-tables
LEFT JOIN locations ON locations.street = all_proto.street AND locations.town = all_proto.town; 我犯了一个
1048
浏览 8
提问于2015-12-22
得票数 0
回答已采纳
1
回答
Django
模型:自动保存
django
、
python-2.7
、
django-models
我的模特有两堂课 FIRST_NAME= models.CharField(max_length=20)from
django
import formsfrom
django
.core.exceptionsimport ValidationError from
django
.core.validators im
浏览 3
提问于2015-10-07
得票数 1
回答已采纳
3
回答
1048
列
值不
能为
空
。
php
、
database
、
forms
行中带有消息'SQLSTATE23000:完整性约束违反:
1048
列
'actual_quote‘不
能为
空
的未捕获异常’actual_quote‘。\webweb2.php:113的C:\wamp\www\Quotr\webweb2.php中,
1048
列
'actual_quote‘不
能为
null。
浏览 2
提问于2014-06-11
得票数 5
1
回答
IntegrityError
1048
:“
列
不
能为
空
”
django
、
django-rest-framework
、
django-serializer
_exceptions.OperationalError: (
1048
, "Column 'created_at' cannot be null") response = get_response(request) File "C:\Users\u
浏览 1
提问于2021-04-05
得票数 0
1
回答
(
1048
,“
列
'user_id‘不
能为
空
”) with
Django
DRF
django
、
django-rest-framework
我成功地通过POST和
Django
Rest Framework (
Django
Rest Framework)写了代码来创建新用户,并且我可以正确地获取token,但是当我尝试POST (通过DRF)来填充链接到我获得的用户的配置文件时(
1048
,"Column 'user_id‘cannot I“)for serializers: class Meta:
浏览 0
提问于2021-06-18
得票数 0
1
回答
django
IntegrityError:(
1048
,“
列
'last_login‘不
能为
空
”)
mysql
、
django
、
migration
所以我得到了这个错误,并查看了这个堆栈溢出问题:在我运行python manage.py migrate之后,它仍然没有检测到任何新的迁移。提前感谢!Python./manage.py显示迁移auth的输出X 0002_alter_permission_name_max_length X
浏览 1
提问于2016-05-11
得票数 3
1
回答
Laravel
1048
列
不
能为
空
php
、
laravel
当我试图保存一个新的interviewTrack时,我得到了'status‘不
能为
空
的
1048
列
。
浏览 1
提问于2016-11-11
得票数 0
回答已采纳
1
回答
Django
IntegrityError (
1048
,“
列
'network_id‘不
能为
空
”)
django
、
django-forms
PS:如果有人想知道我通过查看MySQL工作台、MySQL命令行客户端、manage.py数据库外壳和检查器数据库验证了我的模型,所有的id
列
都存在。', '
django
.contrib.sites', '
django
.contrib.staticfiles', '
django</e
浏览 0
提问于2013-04-02
得票数 0
回答已采纳
5
回答
照明\数据库\ QueryException (23000) SQLSTATE[23000]:完整性约束违反:
1048
列
'first_name‘不
能为
空
mysql
、
laravel
table->integer('uid')->unique(); $table->string('
last_name
class="text-danger">*</span></label> <input type="text" class="form-c
浏览 3
提问于2019-07-30
得票数 1
回答已采纳
2
回答
Django
IntegrityError:(
1048
,“
列
'user_id‘不
能为
空
”)
mysql
、
django
这是我的models.pyuser = models.OneToOneField(User)accesstoken = models.CharField(max_length=255L, null = True) db_table = 'CfitUser' return "%s's profile" % self.user
浏览 4
提问于2013-08-28
得票数 0
回答已采纳
2
回答
django
IntegrityError (
1048
,“
列
'hotel_id‘不
能为
空
”)
django
、
python-3.x
、
django-forms
、
modelform
我尝试使用modelform添加新房间,但得到了
空
值(
1048
,“hotel_id
列
不
能为
IntegrityError”)。我的代码如下。
浏览 0
提问于2018-05-03
得票数 3
4
回答
外键字段中的默认值0引发错误
python
、
django
、
django-models
我在
Django
模型的外键字段中设置默认值为0。但它正在引发
空
值(
1048
,“
列
'country_id‘不
能为
空
”)class TestModel(models): name = models.CharField(max_length
浏览 3
提问于2012-12-15
得票数 0
回答已采纳
1
回答
Django
IntegrityError SQL:
1048
,不
能为
空
python
、
django
、
model
、
integrity
提交表单时,我会收到一个IntegrityError (
1048
, "Column 'paid_on' cannot be null")。
浏览 0
提问于2012-05-14
得票数 0
回答已采纳
2
回答
在
django
-allauth中,在用户模型中添加
列
的正确方法是什么?
python
、
django
、
python-2.7
、
django-allauth
以下是我尝试在用户模型中添加电话号码栏的内容:- class User(
AbstractUser
): phonenumber = models.CharField(max_lengthfields = ("first_name", "
last_name
&
浏览 3
提问于2014-07-19
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
在线网站搭建(七):数据库字段的定义(上)
数据库性能优化之SQL语句优化(上)
python测试开发django-11.模型models详解
Django 3.1发布,支持异步 view 和 middleware
Django基础(9):表单Forms的高级使用技巧
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券