[ckan-dev] How to include JavaScript

Laura Lazzati laulazzati at yahoo.com.ar
Wed Aug 7 18:57:36 UTC 2013


Hi!
My name is Laura Lazzati and I'm new to CKAN.
I have recently made a custom template (that replaces user/reader.html) and I would like to add JavaScript to it.
I created the JavaScript file and tried to include it to my new template as a resource, using the {% resource %} tag , but I keep getting the following error: 
AttributeError: 'module' object has no attribute '/home/laura/Desktop/publicFiles/hola.js'
Please, Could anyone tell me what's wrong?
Thanks!
Regards,
Laura 




More information about the ckan-dev mailing list