How can you take advantage of the Django framework to integrate complex client-side interactions and real-time features into your web applications? Through a series of rapid application development projects, this hands-on book shows experienced Django developers how to include REST APIs, WebSockets, and client-side MVC frameworks such as Backbone.js into new or existing projects.
Learn how to make the most of Django’s decoupled design by choosing the components you need to build the lightweight applications you want. Once you finish this book, you’ll know how to build single-page applications that respond to interactions in real time. If you’re familiar with Python and JavaScript, you’re good to go.
Learn a lightweight approach for starting a new Django projectBreak reusable applications into smaller services that communicate with one anotherCreate a static, rapid prototyping site as a scaffold for websites and applicationsBuild a REST API with django-rest-frameworkLearn how to use Django with the Backbone.js MVC frameworkCreate a single-page web application on top of your REST APIIntegrate real-time features with WebSockets and the Tornado networking libraryUse the book’s code-driven examples in your own projects
Must-read if you want to create modern Django web apps utilizing 'helpers' python servers and JS frontend while exposing a RESTful API to communicate with all that.
The book covers pretty much everything from creating a new Django project, through implementation of RESTful API to single page web applications in JavaScript (Backbone.js). Last few chapters explain real-time updates across websites using Tornado. The authors consider security, scalability and give some useful pointers for further reading. The book covers a lot of material and I am sure I will read it again at some point.
I started this book with knowledge of Python and a little bit of JavaScript/HTML. I found it easy to follow the instructions but following the code was a challenge; a large part of the book uses Backbone.js, jQuery and Underscore to create a javascript application that uses the API running on Django.
My favorite aspect of this book is that it stepwise walks you through a minimal Django setup that allow you to see what a barebones project looks like. The primer on Django REST Framework is decent but light. The rest of the book is about Backbone and using Tornado for websockets, which is a little dated because of Django channels. Backbone seems like a pragmatic choice for a JS library but I am not a JS developer and won't be building a JS app in Backbone anytime soon, so it wasn't applicable to me. Well written and if you want to not use channels, then this book might be better for you.
Must-read if you want to create modern Django web apps utilizing 'helpers' python servers and JS frontend while exposing a RESTful API to communicate with all that.
It is probably the best Python/Django book which I've read. The chapters contains very well structured examples and the whole flow of the book is very consistent. I found the approach in the book very useful in terms of building a whole application. Highly recommended reading!