Django 线程评论
我想使用 django threadedcomments 在我的网站上设置评论系统,并且按照教程中的所有步骤进行操作,但是,我收到以下错误:
没有名为 newforms.util 的模块
我不是确定导致此问题的原因,这是我的配置:
#settings.py
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'myproject.myapp',
'threadedcomments',
)
#urls.py
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^threadedcomments/', include('threadedcomments.urls')),
)
请让我知道是否还有其他更好的评论选择,只要评论系统灵活并且能够进行大量自定义,以及线程评论,因为与集成评级,我很高兴使用另一款。
谢谢你们。
I would like to setup a comment systems on my site, using django threadedcomments, and I follow all the steps in the Tutorial, however, I get the following error:
No module named newforms.util
I am not sure what causing this issue, here is my configuration:
#settings.py
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'myproject.myapp',
'threadedcomments',
)
#urls.py
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^threadedcomments/', include('threadedcomments.urls')),
)
Please let me know if there is another better choice for commenting, as long as the comment system is flexible and able to do lot of customization, as well as threadedcomment, of coz, integrating with Rating, I am happy to use the other one.
Thanks guys.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您很可能正在使用某个应用程序的非常旧的版本。 newforms 模块很久以前就从 django 中消失了。
You are most probably using a very old version of one of your apps. The
newforms
module has disappeared from django a long time ago.