问题
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