Django 1.7 - makemigrations not detecting changes

前端 未结 29 1450
忘了有多久
忘了有多久 2020-11-27 12:43

As the title says, I can\'t seem to get migrations working.

The app was originally under 1.6, so I understand that migrations won\'t be there initially, and indeed i

29条回答
  •  借酒劲吻你
    2020-11-27 12:48

    Had the same problem Make sure whatever classes you have defined in models.py, you must have to inherit models.Model class.

    class Product(models.Model):
        title = models.TextField()
        description = models.TextField()
        price = models.TextField()
    

提交回复
热议问题