【问题标题】:Installing django-cms on Ubuntu 14.04在 Ubuntu 14.04 上安装 django-cms
【发布时间】:2015-04-29 06:35:47
【问题描述】:

我一直在尝试将 django-cms 安装到 Ubuntu 上的虚拟环境中。我完全按照文档 (http://django-cms.readthedocs.org/en/support-3.0.x/introduction/install_from_scratch.html) 中的安装说明进行操作,但是在执行以下命令后我一直收到错误消息。

djangocms -p . mysite

错误:

Path '.' already exists and is not empty, please choose a different one
If you want to use this path anyway use the -s flag to skip this check.

这是什么意思,我该如何解决?

【问题讨论】:

    标签: python django ubuntu pip django-cms


    【解决方案1】:

    您需要为命令提供一个不存在的路径作为参数,它将在其中创建项目。

    例如djangocms -p mysite mysite

    【讨论】:

    • 这条路通向哪里? “主”文件夹?
    • 在这个例子中它是“当前目录”+“mysite/”,你也可以给出一个完整的路径,比如djangocms -p /home/user/parentdir/ 注意你可以完全省略-p 标志并且简单地做djangocms mysite这将在当前目录下名为mysite 的目录中创建项目。见djangocms --help
    猜你喜欢
    • 1970-01-01
    • 2016-04-03
    • 2014-07-24
    • 2015-01-30
    • 2014-12-29
    • 2014-11-22
    • 2017-05-21
    • 1970-01-01
    • 2015-05-31
    相关资源
    最近更新 更多