django.contrib.comments 'not synced' after adding it to installed_apps

牧云@^-^@ 提交于 2019-12-11 02:34:06

问题


I want to replace a home-made comment object by a proxy of django.contrib.comments.models.Comment.

I modified my comments/models.py, added django.contrib.comments to my installed_apps and set COMMENTS_APPS to my comment app's name.

When running python manage.py syncdb (I use South), I get 'django.contrib.comments' in the 'not synced' apps, so the corresponding tables are not created.

How can I get the tables related to django.contrib.comments to be created?

thanks

Julien


回答1:


Table creation is under south (schema) versioning scheme as usual.

Use either manage.py migrate or just always run manage.py syncdb --migrate .




回答2:


If I remember well, there was a name conflict between my Comment and Django Comment...



来源:https://stackoverflow.com/questions/3802906/django-contrib-comments-not-synced-after-adding-it-to-installed-apps

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