ckan.plugins.core.PluginNotFoundException:页面 [英] ckan.plugins.core.PluginNotFoundException: pages

查看:131
本文介绍了ckan.plugins.core.PluginNotFoundException:页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CKAN作为开放数据门户。它是使用Pylons框架以Python编写的。我只想添加一个类似于about页面的新页面,以向用户显示条款和条件。关于页面是内置的。

I'm using CKAN as my open data portal. It's written in Python using Pylons framework. I just want to add a new page similar to about page to display the terms and conditions to the users. About page comes built in.

所以我安装了 ckanext -pages 使用pip命令。我所做的事低于

So I installed ckanext-pages using pip command. What I did was below

1. # Activate your CKAN virtual environment
. /usr/lib/ckan/default/bin/activate

2. # Install the pages extension.
pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages'

但是现在我遇到了以下错误,当找不到所请求的插件时给出该错误。

But now I end up with below error which is given when a requested plugin cannot be found.


ckan.plugins.core.PluginNotFoundException:页面

ckan.plugins.core.PluginNotFoundException: pages

插件位于下面的路径上

/usr/lib/ckan/default/src

请让我知道如何解决此问题?

Please let me know how to fix this?

推荐答案

在激活virtualenv的情况下,在ckanext-pages文件夹中运行 python setup.py development 。这将注册该插件,以便CKAN可以找到它。

With your virtualenv activated, run python setup.py develop in the ckanext-pages folder. This will register the plugin so CKAN can find it.

这篇关于ckan.plugins.core.PluginNotFoundException:页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆