South manages a new app instead of syncdb

寵の児 提交于 2019-12-12 02:32:05

问题


I've added a new app (specifically tastypie) and tried to syncdb however South won't let me. I get:

Not synced (use migrations):
 - tastypie

Why would South insist on this while I didn't use manage.py convert_to_south tastypie?


回答1:


South manages any app that has a /migrations folder under it. Many 3rd party apps come with migrations built in, if you have south then those migrations are used if not then syncdb runs and you're good to go.

convert_to_south is a bit of a hack IMO. It essentially runs generates the same thing as the command line --init would but also --fake it. It doesn't really do anything all that "special".




回答2:


This is because tastypie has, for whatever reason, migrations.



来源:https://stackoverflow.com/questions/9367708/south-manages-a-new-app-instead-of-syncdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!