所以情况就是这样:我正在向我的事件表中添加一个新列(演示者)。我运行了alter table
sql 语句,运行python manage.py syncdb
. 我试图能够选择许多配置文件并将它们存储为演示者。为什么会这样?
Exception Type: DatabaseError
Exception Value: no such table: events_event_presenters
class Event(models.Model):
title = models.CharField(max_length=200)
presenters = models.ManyToManyField(Profile, null=True, blank=True) #new column
sub_heading = models.CharField(max_length=200)
description = models.TextField()
date = models.DateTimeField()