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.7

(based on 10 reviews)

Ratings Distribution

  • 5 Stars

     

    (5)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (2)

70%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (7)
  • Helpful examples (7)
  • Well-written (7)
  • Concise (6)
  • Accurate (5)

Cons

    Best Uses

    • Intermediate (7)
    • Expert (4)
      • Reviewer Profile:
      • Developer (9)

    Reviewed by 10 customers

    Sort by

    Displaying reviews 1-10

    Back to top

     
    4.0

    Very good book

    By cap

    from Guadalajara Mexico

    About Me Developer, Sys Admin

    Verified Buyer

    Pros

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

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly Lightweight Django:

      This is a good book and explains things a easy to understand way for experienced users.

       
      5.0

      Clear, Concise, and Practical

      By Carlos

      from San Antonio, TX

      About Me Developer

      Pros

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

      Cons

      • Not comprehensive enough

      Best Uses

      • Intermediate

      Comments about oreilly Lightweight Django:

      It's well written, and very easy to understand and follow.

      The examples that you build throughout the different chapters are not just "toy" projects, some of these I could actually use "as is" for daily tasks, like the static website generator, or the scrum board.

      Great coverage of django-rest-framework.

      I'd have loved to see coverage of deploying the apps, perhaps to Heroku, or even containerizing them with Docker.

       
      5.0

      Full-stack with django REST

      By jlnabais

      from Lisbon

      About Me Designer, Developer, Maker

      Verified Reviewer

      Pros

      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Lightweight Django:

        Nice book, very good description on how to use Django Rest Framework and how to securely and robustly integrate with client-side JS frameworks and websocket server.

         
        4.0

        Very helpful approach with much detail

        By Paul Paulsen

        from Hamburg, DE

        About Me Developer, Educator, Maker, Sys Admin

        Verified Buyer

        Pros

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

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly Lightweight Django:

          I have started with Python just a few month ago and as a web developer I tried to figure out, what Python can do for me. After I found Django, I had been looking literature and tutorials quite a lot. This book fit best, as it explains the fundamental structure of projects and apps in detail and grows the example throughout the chapters. Especially the REST chapter was very helpful.

          The book is not just a good tutorial that can easily be follewed hands on the keyboard but also a rich source of personal experience.

          (3 of 19 customers found this review helpful)

           
          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 of 5 customers found this review helpful)

             
            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!

            (5 of 21 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?

                (6 of 14 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.

                      (6 of 6 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.

                        (5 of 5 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-10

                        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