Skip to Content
Python Web Development with Django®
book

Python Web Development with Django®

by Jeff Forcier, Paul Bissex, Wesley Chun
October 2008
Intermediate to advanced
408 pages
10h 31m
English
Addison-Wesley Professional

Overview

Using the simple, robust, Python-based Django framework, you can build powerful Web solutions with remarkably few lines of code. In Python Web Development with Django®, three experienced Django and Python developers cover all the techniques, tools, and concepts you need to make the most of Django 1.0, including all the major features of the new release.

The authors teach Django through in-depth explanations, plus provide extensive sample code supported with images and line-by-line explanations. You’ll discover how Django leverages Python’s development speed and flexibility to help you solve a wide spectrum of Web development problems and learn Django best practices covered nowhere else. You’ll build your first Django application in just minutes and deepen your real-world skills through start-to-finish application projects including

  • Simple Web log (blog)

  • Online photo gallery

  • Simple content management system

  • Ajax-powered live blogger

  • Online source code sharing/syntax highlighting tool

  • How to run your Django applications on the Google App Engine

  • This complete guide starts by introducing Python, Django, and Web development concepts, then dives into the Django framework, providing a deep understanding of its major components (models, views, templates), and how they come together to form complete Web applications. After a discussion of four independent working Django applications, coverage turns to advanced topics, such as caching, extending the template system, syndication, admin customization, and testing. Valuable reference appendices cover using the command-line, installing and configuring Django, development tools, exploring existing Django applications, the Google App Engine, and how to get more involved with the Django community.

    Introduction 1

    Part I: Getting Started

    Chapter 1: Practical Python for Django 7

    Chapter 2: Django for the Impatient: Building a Blog 57

    Chapter 3: Starting Out 77

    Part II: Django in Depth

    Chapter 4: Defining and Using Models 89

    Chapter 5: URLs, HTTP Mechanisms, and Views 117

    Chapter 6: Templates and Form Processing 135

    Part III: Django Applications by Example

    Chapter 7: Photo Gallery 159

    Chapter 8: Content Management System 181

    Chapter 9: Liveblog 205

    Chapter 10: Pastebin 221

    Part IV: Advanced Django Techniques and Features

    Chapter 11: Advanced Django Programming 235

    Chapter 12: Advanced Django Deployment 261

    Part V: Appendices

    Appendix A: Command Line Basics 285

    Appendix B: Installing and Running Django 295

    Appendix C: Tools for Practical Django Development 313

    Appendix D: Finding, Evaluating, and Using Django Applications 321

    Appendix E: Django on the Google App Engine 325

    Appendix F: Getting Involved in the Django Project 337

    Index 339

    Colophon 375

    Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.

    Read now

    Unlock full access

    More than 5,000 organizations count on O’Reilly

    AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

    QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
    Julian F.
    Head of Cybersecurity
    QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
    Addison B.
    Field Engineer
    QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
    Amir M.
    Data Platform Tech Lead
    QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
    Mark W.
    Embedded Software Engineer

    You might also like

    Advanced Web Development in Python with Django

    Advanced Web Development in Python with Django

    Andrew Pinkham
    Django: Web Development with Python

    Django: Web Development with Python

    Samuel Dauzon, Aidas Bendoraitis, Arun Ravindran
    Python Web Frameworks

    Python Web Frameworks

    Carlos de la Guardia

    Publisher Resources

    ISBN: 9780321564177Purchase book