[ckan-dev] =?utf-8?Q?Can=E2=80=99t_?=make Javascript work on Ckan
Giulia Benotto
benotto at netseven.it
Tue May 30 12:48:21 UTC 2017
Hi everyone,
I'm trying to follow the example reported here: Ckan theming - Javascript in order to understand how I can add some javascript to my pages. Unfortunately, I can't make the example work. I have a theme called theme, and I'd like to modify that one. So in my ckanext-theme/ckanext/theme/fanstatic/ folder, I add the theme_popover.js file, as per the example (I changed all the file names accordingly). I also put in ckanext-theme/ckanext/theme/templates/snippets/ the package_item.html defined as shown in the example (and changed to match the file names I got).
When I reload my /dataset/ page, all I got is an "internal server error". I searched the logs for further explanation, and here the error I got in my ckan_default.error.log file:
> [Tue May 30 10:43:17.351659 2017] [wsgi:error] [pid 24241:tid 140295054444288] [remote 172.17.0.1:31237] Error - : invalid literal for int() with base 10: '' [Tue May 30 10:43:17.545679 2017] [wsgi:error] [pid 24241:tid 140295054444288] [remote 172.17.0.1:31237] URL: http://localhost:10080/dataset
I can't quite grasp what it means and what should I fix to make it work. Can somebody help me? Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170530/6de1c12f/attachment-0002.html>
More information about the ckan-dev
mailing list