部署到heroku时在选择字段中存在问题

时间:2019-04-18 13:02:58

标签: django django-models

我有一个带有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...

0 个答案:

没有答案