Do you have a "bootstrap.js" file in the folder called "output" under
"static"?  It sounds like s boilerplate file.  Maybe you need to copy it
from the pyjamas distribution.  I'm just getting started with pyjamas myself
so I know next to nothing...

-- Joe


On Thu, Sep 3, 2009 at 2:36 PM, stefaan <[email protected]> wrote:

>
> Hello list,
>
> I'm having some trouble trying to use pyjamas integration.
> Part of the trouble may be caused by the fact that I'm using pyjamas
> 0.6 instead of 0.5 as used in the manual.
> I'm trying out the TodoApp from the manual 2nd ed.
>
> If you look at the code generated by pyjamas 0.6, the TodoApp.html
> file now loads a script "bootstrap.js".
> I've adjusted my view to do the same - so far everything seems ok.
>
> But then it seems that bootstrap.js tries to GET an html page of its
> own, not from the static folder anymore, which fails. Is my
> understanding correct? How to proceed?
>
> from httpserver.log:
>
> 127.0.0.1, 2009-09-03 22:44:48, GET, /todo/default/todoApp, HTTP/1.1,
> 200, 0.018004
> 127.0.0.1, 2009-09-03 22:44:48, GET, /todo/static/output/bootstrap.js,
> HTTP/1.1, 304, 0.000936
> 127.0.0.1, 2009-09-03 22:44:48, GET, /todo/default/
> TodoApp.nocache.html, HTTP/1.1, 400, 0.000464
>
> my view:
>
> <html>
> <head>
> <meta name="pygwt:module" content="TodoApp">
> <title>PyJamas Auto-Generated HTML file TodoApp</title>
> </head>
> <body bgcolor="white">
> <h1> simple todo application</h1>
> <script language="javascript" src="{{=URL
> (r=request,c='static',f='output/bootstrap.js')}}"></script>
> </body>
> </html>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to