[ckan-dev] How to include JavaScript

Herron, Sean Sean.Herron at fda.hhs.gov
Wed Aug 7 19:09:57 UTC 2013


Can you post your entire resource tag? It looks like you may be calling the path incorrectly.


----- Original Message -----
From: Laura Lazzati [mailto:laulazzati at yahoo.com.ar]
Sent: Wednesday, August 07, 2013 02:57 PM
To: ckan-dev at lists.okfn.org <ckan-dev at lists.okfn.org>
Subject: [ckan-dev] How to include JavaScript

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 

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev




More information about the ckan-dev mailing list