【问题标题】:How to install ckanext-wet-boew as ckan extension?如何安装 ckanext-wet-boew 作为 ckan 扩展?
【发布时间】:2014-04-17 11:00:47
【问题描述】:

我正在尝试将“ckanext-wet-boew”ckanext 添加到我的 ckan 2.2。

这些是我遵循的步骤:

1.- 从以下位置下载 zip 文件:https://github.com/open-data/ckanext-wet-boew
2.- 解压到一个文件夹。
3.- 在 /usr/lib/ckan/default/src 中创建一个文件夹,名为:ckanext-wet_boew
4.- 将 ckanext-wet-boew-master\ckanext-wet-boew-master 子文件夹中的内容复制到 ckanext-wet_boew
5.- 正如 readme.st 中所说,我添加了 wet-boew-dist-3.1.7 并将 jqueymobile1.3.2 下载到文件夹
6.- 现在正如它所说:http://docs.ckan.org/en/1117-start-new-test-suite/writing-extensions.html

有一条注释:“要通过将所有文件复制到站点包目录来安装 python 包,请运行 python setup.py install”
通过这个步骤,应该可以使用这个插件添加production.ini ckan.plugins = ... wet_theme

因为它失败了,我已经完成了 pythonsetup.pydevelop

但没办法。

有什么想法???

谢谢

【问题讨论】:

    标签: python ckan


    【解决方案1】:

    安装后,解压 wet-boew dist zip 文件后,您的文件目录应如下所示:

    ckanext-wet_boew/
      README.rst
      setup.py
      ckanext/
        wet_boew/
          plugins.py
          templates/
          theme/
          public/
            en/
            fr/
            images
            readme.rst
            dist/
              ckan/
              grids/
              js/
              resource.config
              theme-base/
              theme-clf2-nsi2/
              theme-gcwu-fegc/
              theme-gcwu-intranet/
              theme-ogpl/
              theme-wet-boew/
    

    如果文件不在此结构中,则扩展将不起作用。

    在根文件夹的 setup.py 上运行“python setup.py develop”后,该包应该可以使用了。

    【讨论】:

    • 嗨。谢谢,我检查了你的结构,重新安装并运行 python setup.py develop 后它似乎可以工作(不完全是为什么)。不幸的是,网络响应不能按预期工作。不确定 jquery 移动版本或什么。谢谢
    猜你喜欢
    • 2016-07-09
    • 1970-01-01
    • 1970-01-01
    • 2022-11-10
    • 2014-11-14
    • 2023-01-19
    • 2016-03-14
    • 2011-07-26
    相关资源
    最近更新 更多