Not sure whether this is more a CherryPy, KID, or Turbogears question,
but here goes, and please forgive me should this be a mis-post.
My question is: "how do I correctly incorporate existing javascript
libs into TurboGears.?"
I tg-admin quickstarted a project (let's say "Foo"), and the requisite
folders get made for me;
I create a folder called "js" at the same level in the hierarchy as
foo-start.py
my master.kid template has a little stanza like this:
...
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"
py:replace="''"/>
    <title>NoteStax</title>
    <script src="js/raster-demo.js"></script>
    <script src="js/Raster.js"></script>
<script>
        window.onload = raster_demo_onload;
</script>
</head>
...
I do python foo-start.py, access localhost:8080, and CherryPy complains
that:
    raise cherrypy.NotFound(path)
NotFound: 404: The path '/js/raster-demo.js' was not found.

127.0.0.1 - - [2006/04/25 12:46:13] "GET /js/raster-demo.js HTTP/1.1"
404 1447
2006/04/25 12:46:13 HTTP INFO 127.0.0.1 - GET /js/Raster.js HTTP/1.1

I have tried moving the folder subordinate to either/both the Foo
folder and the templates folder, but no luck.

Is this just a case of RTFM closer, or well known Turbogears culture
lore (or NOT so well-know)?
Thanks for any help.
<micro-flame-bait>Turbogears rocks! It's is like a mag-lev version of
RoR</micro-flame-bait>
Regards,
Dana


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to