Django : Visual QuickPro Guide
معرفی کتاب «Django : Visual QuickPro Guide» نوشتهٔ Holzner, Steven، منتشرشده توسط نشر Peachpit Press در سال 2009. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Django : Visual QuickPro Guide» در دستهٔ بدون دستهبندی قرار دارد.
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. Cover......Page 1 Table of Contents......Page 6 Introduction......Page 10 Chapter 1: Getting Started: Installing Django......Page 14 Installing Python in Microsoft Windows......Page 16 Installing Python in Linux or UNIX......Page 18 Installing Python in Mac OS X......Page 20 Testing Your Python Installation......Page 22 Removing Any Old Versions of Django......Page 23 Installing Django in Windows......Page 25 Installing Django in Linux or UNIX and Mac OS X......Page 27 Installing a Database System......Page 29 Creating an Empty Django Project......Page 31 Setting Up the Database and Seeing a Django Page......Page 33 Chapter 2: Creating Your First Django Application......Page 36 Creating the Project......Page 37 Setting Up the Database and Testing the Project......Page 39 Creating the Application......Page 41 Creating the Main View......Page 43 Linking the View’s URL to the Application......Page 44 Launching Your First Application......Page 45 Defining a Template Directory......Page 47 Passing Data to the Template......Page 49 Creating the Template......Page 50 Launching the Improved Application......Page 51 Chapter 3: Storing Data in Your Model......Page 52 Creating the Project......Page 54 Setting Up the Database......Page 56 Creating the Favorites Application......Page 58 Planning the Model......Page 59 Creating the Hyperlink Model......Page 61 Adding Hyperlink Data......Page 63 Handling Data in the Shell......Page 65 Creating the User Model......Page 67 Creating the Favorite Model......Page 70 Adding Favorite Data......Page 72 Chapter 4: Connecting the View to the Model......Page 74 Creating the Project and Application......Page 76 Transferring the Database......Page 78 Creating the View......Page 80 Displaying Data from the View......Page 81 Accessing the First Favorite from the Model......Page 83 Accessing a Specific User......Page 85 Accessing a Specific User’s Favorite......Page 87 Accessing All Favorites for a User......Page 89 Editing a Favorite......Page 91 Creating a New User......Page 93 Chapter 5: Creating Multi-page Web Applications......Page 96 Creating the Project and Application......Page 97 Installing the Database......Page 99 Creating the Main View......Page 101 Setting Up the User URLs......Page 103 Creating the User Views......Page 104 Setting Up the Template......Page 106 Creating the User Template......Page 107 Making the View Call the Template......Page 108 Passing User Data to the Template......Page 110 Displaying a User’s Favorites......Page 112 Chapter 6: Styling Django Web Pages......Page 114 Creating the users Application......Page 115 Creating the Database......Page 116 Creating the View......Page 118 Creating the Template......Page 119 Creating the Style Sheet......Page 121 Making Django Serve the Style Sheet......Page 122 Connecting the Style Sheet to the Template......Page 123 Making Style Changes to the Template......Page 125 Styling by ID......Page 126 Chapter 7: Inheriting Templates......Page 128 Creating the Project and Application......Page 130 Transferring the Database......Page 131 Creating the Main View......Page 133 Creating the Main Template......Page 135 Creating the User View......Page 137 Creating the User Template......Page 139 Creating a Base Template......Page 141 Inheriting in the Main Template......Page 142 Inheriting in the User Template......Page 144 Changing the Base Template......Page 146 Chapter 8: Getting User Input: Django Forms......Page 150 Creating the Project and Application......Page 152 Creating the Model......Page 153 Creating the Form......Page 155 Creating the View That Displays the Form......Page 156 Creating the Template......Page 158 Creating the View That Displays the Results......Page 160 Displaying the Data Read from the Form......Page 162 Testing the Form......Page 163 Making Form Data Persistent......Page 165 Verifying Persistent Data......Page 167 Chapter 9: Validating Form Data......Page 170 Creating the Project and Application......Page 173 Creating the Database......Page 174 Creating the Form......Page 176 Creating the View That Displays the Form......Page 177 Creating the Template......Page 179 Validating the Email Address......Page 180 Validating the Password......Page 181 Validating the Username......Page 182 Creating the View That Displays the Results......Page 184 Verifying Validation......Page 185 Chapter 10: Logging Users In and Out......Page 190 Creating the Project and Application......Page 192 Creating the Database......Page 193 Connecting the URLs......Page 195 Creating the Main Page View......Page 197 Creating the Base Template......Page 198 Creating the Main Page Template......Page 200 Creating the Login Page Template......Page 201 Creating the Logout View......Page 203 Logging In and Out......Page 204 C......Page 208 D......Page 209 F......Page 210 L......Page 211 M......Page 212 S......Page 213 T......Page 214 V......Page 215 Z......Page 216 Provides information on creating structured Web applications using the Python-based Web development framework, Django.
دانلود کتاب Django : Visual QuickPro Guide