I have an existing Django (or other app) that I want to convert to Pyjamas, how do I do that?

0
Posted

I have an existing Django (or other app) that I want to convert to Pyjamas, how do I do that?

0

Unless you have already designed the application to exclusively use AJAX in one form or another (REST, JSONRPC etc.) then it’s pretty much a complete redesign. The reason is simple: “standard” web applications load up one page at a time from the server, with possibly some bits of javascript thrown in. Pyjamas applications are loaded once, as they are pure javascript. From that point onwards, unless you want another large javascript “hit”, the entire application should use AJAX to fetch any data, including HTML. If that sounds like it’s a bit different from “normal” web applications, you’d be right. It’s more like “Desktop” application development. So – you can convert the Django (or other web app) one page at a time, to a format which separates out the data from its display. In other words: by the time you’re done, there will be no templates left, only JSONRPC services (or other AJAX service / system). If that sounds like a lot of work, then you can temporarily embed the templates on-d

Related Questions