Lightweight Django
Using REST, WebSockets, and Backbone
Publisher: O'Reilly Media
Final Release Date: November 2014
Pages: 246

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 project
  • Break reusable applications into smaller services that communicate with one another
  • Create a static, rapid prototyping site as a scaffold for websites and applications
  • Build a REST API with django-rest-framework
  • Learn how to use Django with the Backbone.js MVC framework
  • Create a single-page web application on top of your REST API
  • Integrate real-time features with WebSockets and the Tornado networking library
  • Use the book’s code-driven examples in your own projects
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyLightweight Django
 
3.2

(based on 6 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (2)

50%

of respondents would recommend this to a friend.

Pros

  • Accurate (3)
  • Concise (3)
  • Easy to understand (3)
  • Helpful examples (3)
  • Well-written (3)

Cons

    Best Uses

    • Intermediate (3)
      • Reviewer Profile:
      • Developer (5)

    Reviewed by 6 customers

    Sort by

    Displaying reviews 1-6

    Back to top

     
    1.0

    Impractical Django

    By Charles

    from Mountain View, CA

    About Me Developer, Django

    Verified Reviewer

    Pros

      Cons

      • Complication Of Basics
      • Impractical
      • Purely Academic
      • Python 3

      Best Uses

      • Academics
      • Python 3 Enthusiast

      Comments about oreilly Lightweight Django:

      I would first like to say that I do not take it lightly when rating anything with one star.

      However, this book deserves it, and I'll tell you why.

      I'm an actual Python developer, not an academic, computer scientist or tinkerer. With the lack of Django material out there, I positively lit up with joy when I saw this on the market.

      While I had already done RESTful services with AngularJs, I really wanted to see the Tornado / Websockets integration!

      The first mistake is they wrote this book in Python 3 with no consideration for Python 2 backwards compatibility. Normally when you see someone using Python 3, it means they either don't have to answer to anyone about package compatibility, legacy libraries, app compatibility and just generally everything that a real day job developer would have to answer for.

      While I see it as a warning sign when something is done in Python 3, I am experienced enough to be able to translate it back.

      So as I worked though this book, it seemed more like a display of impractical, high-minded, Python 3 design patterns combined with Django.. and not actual applications that anyone would ever have to deal with, make or find useful.

      I took absolutely nothing away from this book except a little better Python 3 knowledge, which is worthless if you want good library compatibility or use Python at your day job.

      I suppose the most useful application of this book is as a door stop or coaster.

       
      5.0

      I never knew Django could be so light!

      By Chip Warden

      from Kansas City, MO

      About Me Developer

      Verified Buyer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

      • Not finished

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Lightweight Django:

      I bought this book at the suggestion of a fellow PythonKC member, and I must say I'm very impressed. By "deconstructing" a Django application to the absolute minimum requirements and building back up from that base, the authors have shown me that many things I thought I knew about Django weren't true, and I'm glad to have been wrong.

      The only negative I can give is that it isn't finished!

      (3 of 9 customers found this review helpful)

       
      1.0

      Half finished

      By niceguydave

      from London, UK

      About Me Developer

      Verified Buyer

      Pros

        Cons

        • Not comprehensive enough

        Best Uses

          Comments about oreilly Lightweight Django:

          The Django part was good but when it came to integrating with the dynamic JavaScript front-end... nothing.

          Is this ever likely to be updated?

          (2 of 2 customers found this review helpful)

           
          2.0

          Promising Start

          By Wolf

          from Melb

          About Me Developer

          Verified Reviewer

          Pros

            Cons

              Best Uses

                Comments about oreilly Lightweight Django:

                Begins with a refreshing and insightful introduction to Django.
                Follows with code quality and practices which range from average to mostly awful. In chapter 3 alone, don't write content back into the code base, don't lump everything into views, don't import django.test.client into the implementation.
                This is very unfortunate because the ideas and goals of the book are very good, just poorly executed.

                (1 of 1 customers found this review helpful)

                 
                5.0

                Simplicity is Beauty

                By chumpalump

                from Madison WI

                About Me Developer

                Verified Buyer

                Pros

                • Accurate
                • Concise
                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                  Best Uses

                  • Expert
                  • Intermediate
                  • Novice
                  • Student

                  Comments about oreilly Lightweight Django:

                  If you are a python hacker and you are embracing the web via APIs and microservices (and you should be), this book is your new best friend. This book should have a wide appeal-- from students and novices who want to start simply, to experts who want to restore sanity to complex systems.

                  It starts by showing how pythonic django is by building the smallest functional web service possible. It does a nice job of showing that django compares well to bottle.py and flask for simplicity. Django's strength lays in it's ability to scale to complex requirements, without outgrowing its applicability. Latter in the book, the marvelous django-rest-framework is used to build restful APIs with authentication and optional admin tools.

                  I'm greatly enjoying the book so far, and looking forward to the rest of the material as it's added.

                  (1 of 1 customers found this review helpful)

                   
                  5.0

                  The first three chapters are great!

                  By divxpr

                  from San Juan, PR

                  About Me Educator, Noob

                  Verified Reviewer

                  Pros

                  • Accurate
                  • Concise
                  • Easy to understand
                  • Helpful examples
                  • Original
                  • Well-written

                  Cons

                  • Have 3 Typos

                  Best Uses

                  • Intermediate
                  • Read The Django Tutorial

                  Comments about oreilly Lightweight Django:

                  If you want to learn how to program step by step in Django, this book is for you but before you start you should take a look to the django tutorial.

                  At the first chapter you will learn how to create a Django project from scratch (without running django-admin py startproject).

                  The second chapter, will teach you how to create an image placeholder, similar to http://placehold.it/

                  And at the third chapter, you will create an app that list the static pages you create. I'm not sure what is the purpose of this app but you will learn very useful techniques.

                  In conclusion i will recommend this book because the information and examples that presents are new and you wouldn't find it on another place.

                  Displaying reviews 1-6

                  Back to top

                   
                  Buy 2 Get 1 Free Free Shipping Guarantee
                  Buying Options
                  Immediate Access - Go Digital what's this?
                  Ebook: $33.99
                  Formats:  ePub, Mobi, PDF
                  Print & Ebook: $43.99
                  Print: $39.99