【问题标题】:Django-CMS installation errorDjango-CMS 安装错误
【发布时间】:2013-08-11 19:58:09
【问题描述】:

我尝试通过this tutorial安装Django-cms。

但是当我完成所有操作并运行命令 python manage.py syncdb 时,我得到了错误:

SyntaxError: 无效语法(forms.py,第 159 行)

那么,怎么了?

谢谢你:)

【问题讨论】:

  • 发布整个堆栈跟踪
  • 一个原因可能是 - 您使用的是Python 3.x,但django-cms only supports Python 2.x
  • 那个,希望他用python 2.x
  • 对不起,伙计们。我使用的是 Python 3.x 而不是 Python 2.5 或更高版本。

标签: python django django-cms


【解决方案1】:

你使用的是什么操作系统,如果是 Ubuntu 或其他 linux 版本,只需创建 django cms 克隆。

git clone https://github.com/divio/django-cms

configure your django-cms in the setting.
hope you have the command git installed.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-13
    • 2015-04-29
    • 2017-10-05
    • 2011-10-02
    • 2014-09-21
    • 2015-04-29
    相关资源
    最近更新 更多