Django - DatabaseError: No such table

前端 未结 5 829
不知归路
不知归路 2021-02-04 11:12

I defined two models:

class Server(models.Model):
    owners = models.ManyToManyField(\'Person\')

class Person(models.Model):
    name = models.CharField(max_le         


        
5条回答
  •  太阳男子
    2021-02-04 11:41

    for django 1.9, this is what i did and it solved the issue.

    python manage.py makemigrations app_name

    python manage.py migrate

提交回复
热议问题