문제

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.

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: pages

Plugin resides on below path

/usr/lib/ckan/default/src

Please let me know how to fix this?

도움이 되었습니까?

해결책

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

다른 팁

had similar issue. Double-check which paster you are using by command:

which paster

it must show you paster from your current virtualenv, which was /usr/lib/ckan/default in your case

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top