[Topic DIscussion] Django一直报错,提示字段冲突!(models.E006) Resolved
Tofloor
poster avatar
neimengbaye
deepin
2022-09-25 23:14
Author
#源码
from django.db import models

# Create your models here.
class ShuJu(models.Model):
    Myblog_Title = FIELDNAME = models.CharField(null=True,blank=True,max_length=50)

#报错
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:
myblog.ShuJu.Myblog_Title: (models.E006) The field 'Myblog_Title' clashes with the field 'Myblog_Title' from model 'myblog.shuju'.

System check identified 1 issue (0 silenced).

Myblog_Title不管改成什么 都提示报错 ,有人可以帮忙解答一下吗?

Reply Favorite View the author
All Replies
neimengbaye
deepin
2022-09-25 23:18
#1

万能的deepin论坛,可否有人打理我 scream

Reply View the author
wtz
deepin
2022-09-25 23:29
#2

Myblog_Title的定义为什要用连等式?

Reply View the author
neimengbaye
deepin
2022-09-26 00:33
#3
wtz

Myblog_Title的定义为什要用连等式?

哎我去!大神!一语道破我愣是没找到问题 !!!!赞

Reply View the author
neimengbaye
deepin
2022-09-26 00:36
#4
neimengbaye

哎我去!大神!一语道破我愣是没找到问题 !!!!赞

是Django插件,mcha快捷输入带出来的 坑啊!😂

Reply View the author