我有一个带有django-multipleselectfield的模型。它在localhost上运行良好,但是当我将其部署到heroku并进行迁移时。它崩溃了。
添加了发行版:将python manage.py迁移到Procfile 但似乎没有帮助。
class Skill(models.Model):
SKILL_CHOICES = (
('html5', 'HTML5'),
('css3-alt', 'CSS3'),
('js-square', 'Javascript'),
)
skills = MultiSelectField(choices=SKILL_CHOICES)
错误
ProgrammingError at /
relation "myself_skill" does not exist
LINE 1: ..."myself_skill"."id", "myself_skill"."skills" FROM "myself_sk...
Exception Type: ProgrammingError
Exception Value:
relation "myself_skill" does not exist
LINE 1: ..."myself_skill"."id", "myself_skill"."skills" FROM "myself_sk...