django代码迁移到新服务器后,使用python manage.py syncdb无法创建表。
[root@xxx]# python manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
在mysql中查看表为空
models.py中表已经定义好:
class Brand(models.Model):
id = models.AutoField(primary_key=True)
brand = models.CharField(max_length=45, blank=True)
model = models.CharField(max_length=45, blank=True)
class Meta:
managed = False
db_table = 'Brand'
另外 setting中INSTALL_APP中已经添加了APPNAME
Google了好久没解决办法,求帮助,谢谢。