Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.