I'm Creating a CKAN EXTENSION base in their official documentation.
https://docs.ckan.org/en/2.9/theming/templates.html#creating-a-ckan-extension
When I'm in this step,
ckan -c /etc/ckan/default/ckan.ini create -t ckanext-example_theme
I got this error. *
(default) root@ccgeo:/usr/lib/ckan/default/src# ckan -c /etc/ckan/default/ckan.ini create -t ckanext-example_theme 2021-10-27 02:27:45,515 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini 2021-10-27 02:27:45,515 INFO [ckan.config.environment] Loading static files from public 2021-10-27 02:27:45,544 INFO [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates 2021-10-27 02:27:45,762 INFO [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates Usage: ckan [OPTIONS] COMMAND [ARGS]... Error: No such command 'create'. (default) root@ccgeo:/usr/lib/ckan/default/src#
文档中有错误,应该是ckan generate extension
as正确的 CLI 命令,或者在您的情况下:
ckan -c /etc/ckan/default/ckan.ini generate extension -o *location-to-put-generated-template*
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.