» » Sams Teach Yourself Django in 24 Hours

Download Sams Teach Yourself Django in 24 Hours fb2

by Brad Dayley
Download Sams Teach Yourself Django in 24 Hours fb2
  • Author:
    Brad Dayley
  • ISBN:
  • ISBN13:
  • Genre:
  • Publisher:
    Sams Publishing; 1 edition (March 3, 2008)
  • Pages:
    528 pages
  • Subcategory:
  • Language:
  • FB2 format
    1105 kb
  • ePUB format
    1189 kb
  • DJVU format
    1543 kb
  • Rating:
  • Votes:
  • Formats:
    lrf rtf mobi azw

Deploy Django in multiple configurations. Maintain sites with Django’s administrator interface.

Deploy Django in multiple configurations.

Teach Yourself Java in 24 Hours. in21Days Sams Teach Yours. Sams Teach Yourself C++ in 21 Days - FTP. 937 Pages·2004·6. 67 MB·17,351 Downloads.

In exactly 24 classes of 1 hour or much less, it is possible for you to to construct full-featured creation web pages utilizing Django, the robust net improvement framework in keeping with Python.

Start by marking Sams Teach Yourself Django in 24 Hours as Want to Read .

Start by marking Sams Teach Yourself Django in 24 Hours as Want to Read: Want to Read savin. ant to Read. The book is organized to guide readers in understanding the benefits and the organization of the framework. It then takes them through the process of using the framework to create a fully functional web site.

The Teach Yourself in 24 Hours series has several unique elements that will help you as you are trying to learn the Django .

The Teach Yourself in 24 Hours series has several unique elements that will help you as you are trying to learn the Django framework. Throughout the book, I use the following elements to draw attention to specific concepts: Tip - This element provides information about slightly off-topic tangents that may be beneficial to you but that are not necessarily directly related to the current section. I knew that when I got this book so was not disappointed.

Designed fo. Selection from Sams Teach Yourself Django in 24 Hours With Safari, you learn the way you learn best. Sams Teach Yourself Django in 24 Hours. Release Date: February 2008. View table of contents.

Part of the Sams Teach Yourself Series Series). Select Format: Paperback. Select Condition: Like New.

In Hour 1, "Understanding Django," you learned some of the basics about the Django framework. The project used in this book uses a MySQL database

In Hour 1, "Understanding Django," you learned some of the basics about the Django framework. Creating a Django Project. The project used in this book uses a MySQL database.

Выделяйте текст, добавляйте закладки и делайте заметки, скачав книгу "Sams Teach Yourself Django in 24. .

Выделяйте текст, добавляйте закладки и делайте заметки, скачав книгу "Sams Teach Yourself Django in 24 Hours" для чтения в офлайн-режиме.

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


Appendix A: Django Resources 477

Appendix B: Django Form Field Objects 481

Appendix C: Formatting Dates and Times 491

Index 493

Bought this book hoping to get a good introduction to Django. I've used the Sam's Teach Yourself series before for C++. That book was great. This one, however, is nearly unusable as a tutorial. This book is typo-laden. Code examples frequently don't work. Examples will be inconsistent, something we wrote on page x will reappear on page y but suddenly variables are differently named, lines of code are removed, etc - this sort of clumsy, unscholarly crap.

Worse than the errors, there are 'Try it Yourself' sections that basically encourage 'yak shaving'. The author uses MySQL in the examples for some unknown reason; as a result of this, the reader is encouraged to do this too. In order to use MySQL, guess what? A third party database connector is required, but don't try installing that with a 64-bit version of Python because it won't work. This sort of crap. The author completely neglects to mention that SQLite is included in the python/django package and supports it natively. Armed with this knowledge alone, the reader can skip many exercises that are MySQL specific.

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.
The examples either don't work with the current version or are just wrong.

Django website has some great documentation (examples that work and are current and free)

also, read this instead

it looks like more current version is under development and view-able as well
I bought this book, and wish I hadn't. I also wish that I'd noticed that the "good" reviews for this book were all written in 2008.

First off there are typos, typos, typos. When you're trying to learn code by following the steps in this book, be prepared to spend a lot of time debugging. There are pages where the author shows you want to type, then on the following page in the recap he shows different code.

The biggest problem is that the book is out of date. If you're trying to learn the current version of Django then many of the examples listed in this book do not work at all. You're better off going to the Django website and reading their on-line tutorials than trying to use this book. For example, in Hour 3 you learn how to set up the admin interface and make your "Person" model editable with the admin interface, except that the instructions do not work at all. I spent about an hour trying to figure out what I'd done wrong, then I finally went to the Django website, read their instructions, and realized that the Sam's book was just so far out of date that it's instructions were useless.
This book has the most errors of any tech book I've ever read. It seems to average about an error a page and the errors cover a wide gamut of things. For example, one page describing how to make a template has an HTML snippet that says 'bgcolor="aabbcc"' when in fact it needs to be 'bgcolor="#aabbcc"', a basic HTML issue. Elsewhere it describes how to get your data models to appear in the admin interface. He suggests adding a "myClassAdmin" class to your "myClass.py" file but that didn't work for me. Fortunately I had another example (from another book) to draw from and that suggested making a completely new file "admin.py" in putting different stuff in there. Either he's using an older version of Django or he majorly screwed up.

Anyway... I find I am still able to make headway despite these errors for 2 key reasons
a) most of the errors are easy to fix if you go snooping on the web and are at least a little familiar with what's going on. (In some sense fixing these errors is like an extra set of reader exercises.)
b) the book actually does layout the process in a very nice way.

More on (b) above... some books I've read take you from crawling to running with everything templates and then repeat on other aspects of Django. This book instead lets you crawl for a while before showing you the walking short cut and that helps! Related, this book starts with only the core/basic modules, while others I've read jump immediately into some modules to make your life easy, but this approach leaves me with a feeling that there's more "magic" to django than the more basic approach followed here. For example, he goes through the first 6 chapters before he starts using templates, he instead puts all the normal template code in the view. So you learn a lot about the "model" and the "view" part all by themselves instead of learning all 3 parts simultaneously.

So... I wish they'd discount the book because of these errors. But it's good. Find it in a library if you can or maybe used to get that discount, but if you can tolerate those errors it's a good intro to Django.