我尝试像django应用程序一样集成django-I,而不使用buildout。现在我可以在syncdb django创建所有模型后启动服务器。我可以管理商店,添加产品,但当我尝试在page.Its显示器上显示产品时
异常值:Caught AttributeError while rendering: 'Shop' object has no attribute 'content_type'
异常位置:/home/siraset/works/env-brille/lib/python2.6/site-packages/django_portlets-1.0b2-py2.6.egg/portlets/templatetags/portlets_tags.py in portlet_slot, line 21
发布于 2010-06-01 17:47:58
如果您查看Django portlet的源代码,您将看到此部分已在较新版本中进行了更改!它以前使用一个object'c内容类型作为缓存键,但我假设不是每个模型都应该有一个引用ContentType,所以他们改变了它:http://bitbucket.org/diefenbach/django-portlets/diff/portlets/templatetags/portlets_tags.py?diff2=796ee52ef3d1&diff1=791c36e884ff
所以看看更新的版本吧!
https://stackoverflow.com/questions/2948534
复制相似问题