Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Sams Teach Yourself Django in 24 Hours and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
39 used & new from $15.00

Have one to sell? Sell yours here
 
   
Sams Teach Yourself Django in 24 Hours
 
 
Start reading Sams Teach Yourself Django in 24 Hours on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Sams Teach Yourself Django in 24 Hours (Paperback)

by Brad Dayley (Author)
Key Phrases: configuring caching, largest blog, verifying authentication, Quiz Answers, Try It Yourself, Utilizing Generic Views (more...)
2.8 out of 5 stars See all reviews (9 customer reviews)

List Price: $39.99
Price: $26.39 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.60 (34%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 4 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 14? Choose One-Day Shipping at checkout. Details
25 new from $20.00 14 used from $15.00
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $15.39

Frequently Bought Together

Sams Teach Yourself Django in 24 Hours + The Definitive Guide to Django: Web Development Done Right, Second Edition + Practical Django Projects (Pratical Projects)
Price For All Three: $82.26

Show availability and shipping details


Customers Who Bought This Item Also Bought

Practical Django Projects (Pratical Projects)

Practical Django Projects (Pratical Projects)

by James Bennett
3.8 out of 5 stars (12)  $26.18
Learning Website Development with Django: A beginner's tutorial to building web applications, quickly and cleanly, with the Django application framework (From Technologies to Solutions)

Learning Website Development with Django: A beginner's tutorial to building web applications, quickly and cleanly, with the Django application framework (From Technologies to Solutions)

by Ayman Hourieh
4.3 out of 5 stars (10)  $35.99
Python Web Development with Django (Developer's Library)

Python Web Development with Django (Developer's Library)

by Jeff Forcier
4.2 out of 5 stars (12)  $31.49
Python: Create - Modify - Reuse

Python: Create - Modify - Reuse

by James O. Knowlton
3.3 out of 5 stars (3)  $30.39
Pro Django (Expert's Voice in Web Development)

Pro Django (Expert's Voice in Web Development)

by Marty Alchin
4.7 out of 5 stars (3)  $29.69
Explore similar items


Editorial Reviews

Product Description

In just 24 lessons of one hour or less, you will be able to build full-featured production websites using Django, the powerful web development framework based on Python.

 

Designed for experienced website developers who have at least some familiarity with the Python programming language, this book uses a straightforward, step-by-step approach. Each lesson builds on the previous ones, enabling you to learn the essentials of implementing the Django framework on a website from the ground up.

 

Step-by-step instructions carefully walk you through the most common Django tasks.

 

Q&As, quizzes, and exercises at the end of each lesson help you test your knowledge.

 

Notes and tips point out shortcuts and solutions.

 

Learn how to…

  • Install and configure the Django web development framework
  • Cleanly separate data, logic, and view layers
  • Implement site interfaces with build templates and views
  • Utilize templates and views to store, access, and retrieve data
  • Use the Django forms library
  • Define custom tags and filters to minimize coding
  • Secure sites with registration, authorization, logins, and permissions
  • Manage sessions and cookies
  • Implement middleware for request and response handling
  • Create sitemaps to inform search engines of your content
  • Internationalize your site
  • Optimize performance with caching
  • Deploy Django in multiple configurations
  • Maintain sites with Django’s administrator interface

 

Introduction 1

 

Part I:  Creating the Website Framework

Hour 1: Understanding Django 7

Hour 2: Creating Your First Website 19

Hour 3: Adding Models and Objects to Your Website 37

Hour 4: Creating the Initial Views 63

Part II: Implementing the Website Interface

Hour 5: Using Data from the Database in Views 81

Hour 6: Configuring Web Page Views 103

Hour 7: Implementing Django Templates to Create Custom Views 117

Hour 8: Using Built-in Template Tags to Enhance Views 139

Hour 9: Using Built-in Template Filters to Enhance Views 155

Hour 10: Adding Forms to Views 185

Hour 11: Using Views to Add and Update Data in the Database 209

Hour 12: Utilizing Generic Views 231

Hour 13: Advanced View Configurations 269

Part III: Implementing a Full-Featured Website

Hour 14: Managing Site Users 295

Hour 15: Adding Website Security 313

Hour 16: Managing Sessions and Cookies 333

Hour 17: Customizing Models in the Admin Interface 347

Hour 18: Customizing the Admin Interface 365

Part IV:  Implementing Advanced Website Components

Hour 19: Implementing Middleware 383

Hour 20: Internationalization and Localization 407

Hour 21: Creating Sitemaps 423

Hour 22: Implementing Multiple Websites 437

Hour 23: Configuring Caching 451

Hour 24: Deploying Django 465

Appendixes

Appendix A: Django Resources 477

Appendix B: Django Form Field Objects 481

Appendix C: Formatting Dates and Times 491

 

Index 493

 

 



About the Author

Brad Dayley is a senior software engineer in Novell’s Product Development Group. He has 16 years of experience in designing, developing, and implementing software from the kernel level through web development. He is the author of several books on server and network management as well as programming languages. When he is not developing software or writing books, he can be found biking, hiking, and/or Jeeping somewhere in the remote regions of the western United States with his wife, DaNae, and four sons.



See all Editorial Reviews

Product Details

  • Paperback: 528 pages
  • Publisher: Sams; 1 edition (March 3, 2008)
  • Language: English
  • ISBN-10: 067232959X
  • ISBN-13: 978-0672329593
  • Product Dimensions: 9 x 7 x 1.4 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 2.8 out of 5 stars See all reviews (9 customer reviews)
  • Amazon.com Sales Rank: #521,043 in Books (See Bestsellers in Books)

Inside This Book (learn more)


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
Brad Dayley suggested this product show on searches for "web development". What do you suggest?

 

Customer Reviews

9 Reviews
5 star:
 (1)
4 star:
 (3)
3 star:
 (1)
2 star:
 (1)
1 star:
 (3)
 
 
 
 
 
Average Customer Review
2.8 out of 5 stars (9 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
10 of 12 people found the following review helpful:
4.0 out of 5 stars Other reviews are too critical, April 22, 2008
By C. Young "C. Young" (West Jordan, UT United States) - See all my reviews
(REAL NAME)      
I have this book and have read most of it, and I think the 1 star reviews here are overly critical and not really deserved.

Yes, the book has some mistakes in it, but most computer books do. I think this book gives you enough instruction that if a code snippet does have an error in it, you can easily identify what it is and fix it yourself. Also, most code snippets are listed more than once, and if I remember correctly, errors present in one code snippet were not present in the others.

I originally learned Django from the Django project's website, but it lacks in a lot of areas. Some features of the framework are covered really well, and others aren't.

When The Django Book came out, I bought it, read it, and gave it a really good review, but the truth is that is suffers from the same lack of consistent focus that the Django website does; some things are covered well and others are lightly touched upon.

I think that is where this book comes in. For me anyway, it filled in some of the missing pieces and clarified some aspects of Django that had been a bit hazy for me before.

None of the other documentation or currently published books provide you with a complete view of Django, and neither does this one. It does, however, provide pieces to the puzzle that the other documentation doesn't. Therefore, I would not write it off as some reviewers have. It does provide value.
Comment Comments (2) | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 7 people found the following review helpful:
4.0 out of 5 stars Good if you can handle the sample code errors, June 7, 2008
By Michael McKee "mystic cowboy" (Port Townsend, WA United States) - See all my reviews
(TOP 100 REVIEWER)    (REAL NAME)      
First off, there are a number of code errors in this book. Look at some other reviews of Sam's 24 Hours or 24 Days books and you will find that this is common. Apparently one of the reasons that these books are so inexpensive is that the publisher doesn't spend money on technical reviews. I knew that when I got this book so was not disappointed. I have just enough coding experience that I am able to catch obvious mistakes and not get bogged down by the sample code. I can see why someone who is less experienced might find the book unacceptable. To be fair, the book description does mention that it is for people with some Python background, who should be able to spot mistakes in the text.

On the plus side this book actually does a good job of offering Django basics in a logical and straightforward manner. It is a well thought out and paced tutorial and currently the only one available.

I find the Definitive Guide to be more of a reference book than a training one. If you are already an experienced programmer then skip the Sam's volume. If, like me, you have some background but need a step-by-step primer then this book is pretty good. The not yet released Django Projects book might be better but this is what's here now and it has given me enough of a background that I can understand the more advanced material of the Definitive Guide to Django.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 7 people found the following review helpful:
4.0 out of 5 stars Worthy of the title, April 17, 2008
This is indeed a good beginner Django book and no doubt will teach your Django in the short 24 hours. However note that you will not be an expert in Django but more than enough to get started and get things going. The real stuff in the online reference anyway. :-)

I did find the chapter on Model lacking and seems incomplete -- this is the reason for the 4 stars. But this could be because Django API is still growing and as reflected by the online API.

In short this book deliver its promise of learning Django in short 24 hours.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

1.0 out of 5 stars Skip it
For a "how to" book this title is filled with errors. Examples are incorrect, parameters are misspelled and the instructions are not correct for the current stable release of... Read more
Published 1 month ago by Rob

2.0 out of 5 stars Too many errors
I would have given this book 4 stars if there had only been one or two errors. However, there are so many errors that it breaks your concentration on learning the Django... Read more
Published 9 months ago by Jesse J. Aiton

3.0 out of 5 stars TY Django, petty good
I give this book a 3. I think the way it is presented and the pace is good. However I think a lot of the errors go beyond just minor typos and cause much confusion and waste of... Read more
Published 12 months ago by scott adams

5.0 out of 5 stars Great book-good instruction
Sams Teach Yourself Django in 24 Hours (Sams Teach Yourself)

This book helped me to get into the world of back end web development. Read more
Published 14 months ago by JP

1.0 out of 5 stars Riddled with errors
I'd had high hopes for this book, but it is riddled with errors. Even the "Hello, World" examples in the first chapter fail to work.
Published 14 months ago by AO

1.0 out of 5 stars If you want to learn django, skip this book
I purchased this book to learn how to use django. It seemed to be written well and had a good example site that you end up with after completing the 24 hours. Read more
Published 15 months ago by Chris A. Breshears

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (1 discussion)
  Discussion Replies Latest Post
How popular is Django ? 0 February 2008
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Let Toro Clear the Snow

Let Toro Clear the Snow
Rely on Toro for top-quality snow throwers and power shovels to make snow removal a breeze.

Shop all Toro

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Cut the Job Down to Size

Shop for hand saws
Whether you're trimming limbs in the yard or cutting up debris, find the correct saw for the job in the Outdoor Power & Lawn Equipment Store.

Shop all hand saws

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Finger Lickin' Fifteen
Finger Lickin' Fifteen by Janet Evanovich
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates