Django Models (1054, “Unknown column in 'field list'”)

后端 未结 13 1642
庸人自扰
庸人自扰 2020-12-08 13:18

No idea why this error is popping up. Here are the models I created -

from django.db import models
from django.contrib.auth.models import User

class Shows(m         


        
13条回答
  •  醉梦人生
    2020-12-08 13:51

    The direct solution is delete files under folder ../Project/App/migrations, and the method to avoid this problem is create new databaes table column instead of chagne the existing one.

提交回复
热议问题