2021-06-02, 15:05–15:50 (Europe/Paris), Main Room
In this talk, we want to share our experience going beyond JSON APIs and using more Serializers and Renderers' features to create full-stack applications using Django Rest Framework
In this talk, we want to share our experience going beyond JSON APIs and using more Serializers and Renderers' features to create full-stack applications using Django Rest Framework.
After many years using only Django and creating many applications with the traditional HTML templates and forms, like most web developers, we started to go more and more into a separate solution of backend and frontend. To do that, we then used Django Rest Framework to create nice JSON APIs. But recently, we started to go back to our roots and create more full-stack applications, but using Rest Framework to get the most of both worlds.
Our views now not only can render HTML templates and serializers as forms but also, with the support of Renderers, allow us to quickly have JSON and more complex formats like Microsoft Word or Excel document responses. With that, we can render our HTML templates in the backend but already have the same serializers to update our DOM dynamically or download the same data as a report.
It wasn't as easy as we thought, and we needed to learn a lot during the process, creating our own solutions and extending some parts of Rest Framework itself. We want to share all of that and maybe help you too.
Photo by Bekir Dönmez
I'm a software developer and I have been working with Python since 2012. Nowadays, I work creating python applications that runs in embedded Linux and web applications to process and displays the data we collect from our embedded systems :)
For sporadic tweets (mostly in Portuguese) follow me on Twitter @thiagogds
Founder of a Brazilian startup with a demonstrated history of building data-based products in the legal services industry. Skilled in Python, frontend development, and data analysis techniques.