django-cms 入门:page_submit_row 上出现错误
我正在开始使用 django-cms,当我尝试在管理界面中编辑页面时遇到异常。
由于 {% page_submit_row %}
模板标记而引发 TemplateSyntaxError
异常。
TemplateSyntaxError at /admin/cms/page/1/ Caught an exception while rendering: admin/page_submit_line.html Request Method: GET Request URL: http://127.0.0.1:8082/admin/cms/page/1/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: admin/page_submit_line.html Exception Location: C:\Program Files\Python26\lib\site-packages\django\template\debug.py in render_node, line 81
有人知道 django-cms 的好教程吗?
更新: 看来django-cms的安装没有完全成功。 admin/page_submit_line.html 模板丢失。我尝试重新安装几次,结果相似。该文件的手动副本可以解决该问题。
我如何确定安装已正确完成?我猜想还有一些其他文件丢失了。手动复制丢失的文件是否安全?
I am getting started with django-cms and I am facing an exception when I try to edit a page in the admin inteface.
A TemplateSyntaxError
exception is raised due to the {% page_submit_row %}
templatetag.
TemplateSyntaxError at /admin/cms/page/1/ Caught an exception while rendering: admin/page_submit_line.html Request Method: GET Request URL: http://127.0.0.1:8082/admin/cms/page/1/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: admin/page_submit_line.html Exception Location: C:\Program Files\Python26\lib\site-packages\django\template\debug.py in render_node, line 81
Does anybody know also a good tutorial of django-cms?
Update: It seems that the installation of django-cms is not fully sucessful. The admin/page_submit_line.html template was missing. I've try to reinstall several time with similar result. A manual copy of the file fix the problem.
How can I be sure that the install has be done properly? I guess that some other files are missing. Is it safe to copy the missing files manually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要在文件顶部
{% load %}
模板标记库。You may need to
{% load %}
the template tag library at the top of your file.看来问题来自 django-cms 安装程序。 RC2 是这样,现在 RC3 已经出来了。
而且,建议使用easy_install进行安装
easy_instaling RC3 解决了这个问题
Best
It seems that the problem comes from the django-cms installer. It was with RC2 and RC3 is out now.
Moreover, It is recommended to use easy_install for the installation
easy_instaling RC3 fixed the problem
Best