Telepath - adding the missing link between Django and rich client apps
2021-06-02, 11:30–12:15 (Europe/Paris), Main Room

Introducing a new approach to sharing data models between Python and JavaScript, to help in building Django apps with rich client-side functionality.

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 when building a new version of StreamField, the framework for editing and organising structured page content. Our solution was a new library, '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.

See also: Slides

Lead developer of Wagtail CMS at Torchbox Ltd.