Django: Visual QuickPro Guide (Visual QuickPro Guide Series)

Overview

DJango is a open source web application framework written in Python. It follows the MVC (model view controller) design pattern; this software design pattern separates business logic from the user interface making it easier to make changes to the logic or interface without affecting the other. Django's primary goal is to ease the creation of complex, database-driven websites. The framework emphasizes reusability and "pluggability" of components,...

See more details below
Paperback
$18.22
BN.com price
(Save 39%)$29.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (16) from $1.99   
  • New (7) from $9.42   
  • Used (9) from $1.99   
Django: Visual QuickPro Guide

Available on NOOK devices and apps  
  • Nook Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.19
BN.com price
(Save 45%)$23.99 List Price

Overview

DJango is a open source web application framework written in Python. It follows the MVC (model view controller) design pattern; this software design pattern separates business logic from the user interface making it easier to make changes to the logic or interface without affecting the other. Django's primary goal is to ease the creation of complex, database-driven websites. The framework emphasizes reusability and "pluggability" of components, rapid development, and the principle of DRY (Don't Repeat Yourself). Python is used throughout.

Django: Visual QuickStart Guide starts at the beginning and moves web designers quickly along the path to developing Python Web applications with Django. After introducing readers the idea of Model/View/Controller applications and why Django is the right choice, the book walks a reader through creating their first Django Web site. It goes on to cover the ultra-cool things that can be done with Django to create robust Model/View/Controller applications.

Read More Show Less

Product Details

  • ISBN-13: 9780321643407
  • Publisher: Peachpit Press
  • Publication date: 1/3/2010
  • Series: Visual QuickPro Guide Series
  • Pages: 203
  • Sales rank: 1,322,452
  • Product dimensions: 6.90 (w) x 8.90 (h) x 0.60 (d)

Table of Contents

Introduction ix

Chapter 1 Getting Started: Installing Django 1

Installing Python in Microsoft Windows 3

Installing Python in Linux or UNIX 5

Installing Python in Mac OS X 7

Testing Your Python Installation 9

Removing Any Old Versions of Django 10

Installing Django in Windows 12

Installing Django in Linux or UNIX and Mac OS X 14

Installing a Database System 16

Creating an Empty Django Project 18

Setting Up the Database and Seeing a Django Page 20

Chapter 2 Creating Your First Django Application 23

Creating the Project 24

Setting Up the Database and Testing the Project 26

Creating the Application 28

Creating the Main View 30

Linking the Views URL to the Application 31

Launching Your First Application 32

Defining a Template Directory 34

Passing Data to the Template 36

Creating the Template 37

Launching the Improved Application 38

Chapter 3 Storing Data in Your Model 39

Creating the Project 41

Setting Up the Database 43

Creating the Favorites Application 45

Planning the Model 46

Creating the Hyperlink Model 48

Adding Hyperlink Data 50

Handling Data in the Shell 52

Creating the User Model 54

Creating the Favorite Model 57

Adding Favorite Data 59

Chapter A Connecting the View to the Model 61

Creating the Project and Application 63

Transferring the Database 65

Creating the View 67

Displaying Data from the View 68

Accessing the First Favorite from the Model 70

Accessing a Specific User 72

Accessing a Specific User's Favorite74

Accessing All Favorites for a User 76

Editing a Favorite 78

Creating a New User 80

Chapter 5 Creating Multi-page Web Applications 83

Creating the Project and Application84

Installing the Database 86

Creating the Main View 88

Setting Up the User URLs 90

Creating the User Views 91

Setting Up the Template 93

Creating the User Template 94

Making the View Call the Template 95

Passing User Data to the Template 97

Displaying a User's Favorites 99

Chapter 6 Styling Django Web Pages 101

Creating the users Application 102

Creating the Database 103

Creating the View 105

Creating the Template 106

Creating the Style Sheet 108

Making Django Serve the Style Sheet 109

Connecting the Style Sheet to the Template 110

Making Style Changes to the Template 112

Styling by ID 113

Chapter 7 inheriting Templates 115

Creating the Project and Application 117

Transferring the Database 118

Creating the Main View 120

Creating the Main Template 122

Creating the User View 124

Creating the User Template 126

Creating a Base Template 128

Inheriting in the Main Template 129

Inheriting in the User Template 131

Changing the Base Template 133

Chapter 8 Getting User Input: Django Forms 137

Creating the Project and Application 139

Creating the Model 140

Creating the Form 142

Creating the View That Displays the Form 143

Creating the Template 145

Creating the View That Displays the Results 147

Displaying the Data Read from the Form 149

Testing the Form 150

Making Form Data Persistent 152

Verifying Persistent Data 154

Chapters 9 Validating Form Data 157

Creating the Project and Application 160

Creating the Database 161

Creating the Form 163

Creating the View That Displays the Form 164

Creating the Template 166

Validating the Email Address 167

Validating the Password 168

Validating the Username 169

Creating the View That Displays the Results 171

Verifying Validation 172

Chapter 10 Logging Users In and Out 177

Creating the Project and Application 179

Creating the Database 180

Connecting the URLs 182

Creating the Main Page View 184

Creating the Base Template 185

Creating the Main Page Template 187

Creating the Login Page Template 188

Creating the Logout View 190

Logging In and Out 191

Index 195

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)