ckan 2.3 problems with adding the example_template plugin

∥☆過路亽.° 提交于 2019-12-12 03:38:54

问题


I am trying to customize a ckan 2.3 installation with a template.

I followed this documentation.

When I try to restart the ckan I get a whole bunch of error messages ending with

"ImportError: No module named plugin"

I have not changed any of the files named in the error-messages.

What can I do to get a custom template running?

--- UPDATE ---

I am importing the template with

ckan.plugins = stats text_view image_view recline_view datastore example_theme

The ckan is started with

paster serve --reload /etc/ckan/default/development.ini (restarting the machine don't makes a difference)

compiling the template was no problem and gave no error


回答1:


i think you need to run command under ckanext-plugindirectory

$ python setup.py develop

then

$ paster serve /etc/ckan/default/development.ini

if it's not working

then rename your plugin in this line

entry_points=''' [ckan.plugins] example_theme=ckanext.example_theme.plugin:ExampleThemePlugin ''',

and then change your plugin name and add this name into your development.ini also make sure that you have run

$ python setup.py develop

then

$ paster serve /etc/ckan/default/development.ini



来源:https://stackoverflow.com/questions/31542328/ckan-2-3-problems-with-adding-the-example-template-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!