django-cms 入门:page_submit_row 上出现错误

发布于 2024-08-10 11:48:04 字数 745 浏览 2 评论 0原文

我正在开始使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不爱素颜 2024-08-17 11:48:04

您可能需要在文件顶部{% load %}模板标记库。

You may need to {% load %} the template tag library at the top of your file.

柠北森屋 2024-08-17 11:48:04

看来问题来自 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文