acr*_*ane 6 python django postgresql django-models django-migrations
我正在尝试与我的 django 项目的开发服务器进行交互。但是,服务器上的任何页面都会返回相同的错误:
Exception Type: ProgrammingError
Exception Value: column myApp_verb.date does not exist
Run Code Online (Sandbox Code Playgroud)
我最近没有将字段日期添加到模型动词中(它已经存在了一段时间,我不确定是什么导致了这个错误的开始)。我的协作者的本地计算机上都有相同的文件,并且没有人遇到任何问题。
我尝试过各种事情:
我尝试删除日期字段(以及对它的所有引用)。makemigrations没有检测到任何更改,并且migrate失败并出现错误:
django.db.utils.ProgrammingError: column "date" does not exist
我尝试过重命名该字段。再次makemigrations没有检测到任何更改,并且迁移失败,并出现与上述相同的错误。
我已尝试删除所有迁移。这没有改变什么。
我现在没有主意了。任何帮助将非常感激。
提前致谢!
编辑:这是根据要求的动词类。它非常简单:
class Verb(models.Model):
english_gloss = models.CharField(max_length = 20)
first_person = models.CharField(max_length = 20)
second_person = models.CharField(max_length = 20)
third_person = models.CharField(max_length = 20)
fourth_person = models.CharField(max_length = 20)
transitivity = models.BooleanField()
classifier = models.CharField(max_length = 20)
inner_lexical = models.CharField(max_length = 20)
outer_lexical = models.CharField(max_length = 20)
perfective = models.CharField(max_length = 20)
imperfective = models.CharField(max_length = 20)
date = models.DateTimeField(auto_now_add = True)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7155 次 |
| 最近记录: |