DjangoCon US 2018 - A Python-Driven Web App Framework... by Kendall Chuang and Henry Olson

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=PNCQa2aQ4vg



Duration: 0:00
47 views
0


DjangoCon US 2018 - A Python-Driven Web App Framework with Django, Channels, and React by Kendall Chuang and Henry Olson

At our company, we have faced a monumental task: designing a simple framework for data scientists to create powerful, dynamic web applications using only Python. In order to utilize the power of our machine-intelligence platform, we need to be able to quickly generate web applications to cater to different client solutions. We wanted to move standard data analysis workflows out of the command line, and into sleek, modern web apps that allow for dynamic construction of charts, tables, and other visualizations.

Our talk will focus on how we addressed this problem statement with the development of an application framework built on Django, Channels, and React. We picked these technologies for several reasons. Django is already an incredibly powerful web framework, and we realized very early on that we could use Django Models, Forms, and Form Validation to serve as the core of our backend. However, we opted to take a different approach than server-side rendering, and opted to utilize React on the frontend to display large trees of dynamically-generated components.

To connect these two segments, we decided to use websockets, via Django Channels. Our machine intelligence platform is incredibly powerful, and it allows us to perform tasks on big data with long-running jobs, such as topological modeling, auto-group generation, and feature selection. We use Channels as a way for the Django server to notify the React client on updates to these processes and to refresh different charts and tables.

Lastly, we designed our own Python SDK to allow data scientists to easily generate Python objects which are serialized and converted into React components. A developer using this framework doesn’t need to know Django, React, or Channels, but can utilize the power of all three in concert to quickly prototype powerful machine-learning applications with appealing user interfaces.

Throughout this talk, we will focus on how these technologies interact with one another, the benefits of these design-choices, and the challenges that we faced. The potential applications of this architecture extend far beyond our solutions, and it’s valuable for listeners to understand how Django can be used outside of traditional contexts. Hopefully this talk will inspire other Django developers to consider how their apps can utilize websockets, client-side rendering, and other web-development paradigms to address different and unique use-cases.




Other Videos By Confreaks


2022-04-08DjangoCon US 2018 - Keynote by Anna Makarudze
2022-04-08DjangoCon US 2018 - Your web framework needs you! by Carlton Gibson
2022-04-08DjangoCon US 2018 - Becoming a Multilingual SuperHero in Django by Sanyam Khurana
2022-04-08DjangoCon US 2018-A Bossy Sort of Voice: Uncovering Gender Bias in Harry Potter by Eleanor Stribling
2022-04-08DjangoCon US 2018 - Auto-generating an API using PostgreSQL... by Mjumbe Poe
2022-04-08DjangoCon US 2018 - Autonomous Vehicles, Intelligent Transportation Systems... by Ken Whitesell
2022-04-08DjangoCon US 2018 - Transfer those Skills!... by Caroline Taylor and Rebekah Post
2022-04-08DjangoCon US 2018 - Herding Cats with Django... by Sage Sharp
2022-04-08DjangoCon US 2018 - Code Review Skills for Pythonistas by Nina Zakharenko
2022-04-08DjangoCon US 2018 - Wagtail CMS - Making Django More User (and Developer) Friendly by Sara Heins
2022-04-08DjangoCon US 2018 - A Python-Driven Web App Framework... by Kendall Chuang and Henry Olson
2022-04-08DjangoCon US 2018 - An Intro to Docker for Djangonauts by Lacey Williams Henschel
2022-04-08DjangoCon US 2018 - Elasticsearch: Accelerating the Django Admin by Kate Kligman
2022-04-08DjangoCon US 2018 - Packaging Django Apps for Distribution on PyPI by Laura Hampton
2022-04-08DjangoCon US 2018 - Building Workflows With Celery by Josue Balandrano Coronel
2022-04-08DjangoCon US 2018 - Containerless Django: Deploying without Docker by Peter Baumgartner
2022-04-08DjangoCon US 2018 - Lightning Talks Day 1
2022-04-08DjangoCon US 2018 - BDD (Behavior Driven Development) Testing for Django Apps by Le Xiao
2022-04-08DjangoCon US 2018 - Opening Keynote by Chloe Condon
2022-04-08DjangoCon US 2018 - It's about time by Russell Keith-Magee
2022-02-01ChefConf 2018 - NFCU and Chef: A Year of Automating AIX, Linux, and More by Alan Thatcher