Contribute Media
A thank you to everyone who makes this possible: Read More

Telepath-adding the missing link between Django and rich client apps

Description

In today's web applications, the traditional client/server division is falling out of favour - there's an increasing need for the client side to handle not just the presentation layer, but the data model too. But how do you do that without recreating all of your Django business logic in JavaScript?

This was the problem faced by Wagtail CMS (https://wagtail.io/) when building a new version of StreamField, the framework for editing and organising structured page content. Our solution was a new library, 'telepath (https://wagtail.github.io/telepath/)', which can be thought of as a cross-platform version of Python's pickle mechanism, allowing arbitrary object to be unpacked into JavaScript code.

In this talk, we'll show how Wagtail has used telepath to enhance Django forms with new client-side capabilities, and how you can use it in your projects to get the best of both the server-side and client-side world.

Details

Improve this page