I want to install a CKAN extension (plugin), but do not know how. This is the procedure that was performed:
- file download:
download destination: /usr/lib/ckan/default/src/ckan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/ckan/default/src/ckan/
bin/
ckan/
ckan-egg-info/
ckanext-geoview/
..etc
/usr/lib/ckan/default/src/pip-delete-this-directory.txt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.Installation:
'$ cd /usr/lib/ckan/default/src/ckan'
'$ git clone https://github.com/ckan/ckanext-geoview.git'
'$ cd ckanext-geoview'
'$ python setup.py develop'
3.Add it in your configuration file:
'$ vi /etc/ckan/default/development.ini'
I changed the following.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ckan.plugins = resource_proxy geo_view ..... (other plugins...)
ckan.views.default_views = ... geo_view
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.Reload Apache:
'$ sudo service apache2 reload'
5.ckan db init:
'$ su -s /bin/bash - ckan'
'$ . default/bin/activate'
'$ cd /usr/lib/ckan/default/src/ckan'
'$ /usr/lib/ckan/default/bin/paster --plugin=ckan db init --config=/etc/ckan/default/development.ini'
error message:
ckan.plugins.core.PluginNotFoundException: geo_view