本文介绍了ckan 2.3添加example_template插件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试使用模板自定义ckan 2.3安装.

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

我遵循了本文档.

当我尝试重新启动ckan时,我收到一堆以

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

我没有更改错误消息中命名的任何文件.

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

我该怎么做才能运行自定义模板?

What can I do to get a custom template running?

-更新---

我正在使用

ckan以

编译模板没问题,也没有错误

compiling the template was no problem and gave no error

推荐答案

我认为您需要在ckanext-plugin目录下运行命令

i think you need to run command under ckanext-plugindirectory

$ python setup.py开发

$ python setup.py develop

然后

$粘贴服务/etc/ckan/default/development.ini

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

如果它不起作用

然后在此行中重命名您的插件

then rename your plugin in this line

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

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

,然后更改您的插件名称,并将此名称添加到您的development.ini中还要确保您已运行

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

$ python setup.py开发

$ python setup.py develop

然后

$粘贴服务/etc/ckan/default/development.ini

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

这篇关于ckan 2.3添加example_template插件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 18:00