django.contrib.comments在将其添加到installed_apps后未同步 [英] django.contrib.comments 'not synced' after adding it to installed_apps

查看:135
本文介绍了django.contrib.comments在将其添加到installed_apps后未同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用django.contrib.comments.models.Comment的代理替换自制的注释对象。

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

我修改了我的评论/ models.py ,将django.contrib.comments添加到我的installed_apps,并将COMMENTS_APPS设置为我的评论应用程序的名称。

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

运行python manage.py syncdb(我使用South) django.contrib.comments'在'未同步'的应用程序,所以相应的表不会创建。

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.

如何获取与django.contrib.comments相关的表要创建?

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

谢谢

Julien

推荐答案

如果我记得很好,我的评论和Django评论之间有一个名字冲突...

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

这篇关于django.contrib.comments在将其添加到installed_apps后未同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆