Friday 2:35 p.m.–3:05 p.m.

Straightening Out AngularJS with Python

Jeff Schenck

Audience level:
Novice
Category:
Web Frameworks

Description

AngularJS is a really exciting tool for building super slick single-page apps. But if you want them to play nice with a Python backend (Django, Pyramid, Flask, etc.) you're going to have to do a little bit of wrangling. These are the design patterns that worked for us.

Abstract

When we decided to rebuild our website as a one-page app using Angular.js on top of Django, a lot changed. We had to rethink the way we did APIs, the way we rendered templates, the way we thought about page load speeds. As the world of JavaScript frameworks starts to mature and more Python projects adopt them, I wanted to go through some of what we learned the hard way. The internet is vast, but it's still pretty sparse on best practices and explanations of how to work on large projects with these tools. If you're about to embark on a project with a JavaScript framework or if you've struggled setting up your own project, I'll give you some tips and signposts to light your way.