Book 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
Table of contents
- Table of Contents (1/3)
- Table of Contents (2/3)
- Table of Contents (3/3)
- Introduction
-
Part I: Creating the Website Framework
- HOUR 1: Understanding Django
- HOUR 2: Creating Your First Website
-
HOUR 3: Adding Models and Objects to Your Website
- Installing the Admin Interface Model
- Updating the URLconf File to Allow Admin Access
- Activating the Model in the Admin Interface
- Adding, Modifying, and Viewing Objects in the Admin Interface
- Defining Data Models (1/3)
- Defining Data Models (2/3)
- Defining Data Models (3/3)
- Summary
- Q&A
- Workshop
- Exercises
- HOUR 4: Creating the Initial Views
-
Part II: Implementing the Website Interface
- HOUR 5: Using Data from the Database in Views
- HOUR 6: Configuring Web Page Views
- HOUR 7: Implementing Django Templates to Create Custom Views
- HOUR 8: Using Built-in Template Tags to Enhance Views
- HOUR 9: Using Built-in Template Filters to Enhance Views
- HOUR 10: Adding Forms to Views
- HOUR 11: Using Views to Add and Update Data in the Database
-
HOUR 12: Utilizing Generic Views
- Understanding Generic Views
- Using Simple Generic Views
- Displaying an Object List in a Generic View
- Displaying Object Details in a Generic View
- Displaying Date-Based Objects in a Generic View (1/2)
- Displaying Date-Based Objects in a Generic View (2/2)
- Using Generic Object-Creation Views
- Using Generic Object-Update Views
- Using Generic Object-Deletion Views
- Summary
- Q&A
- Workshop
- Exercises
- HOUR 13: Advanced View Configurations
- Part III: Implementing a Full-Featured Website
- Part IV: Implementing Advanced Website Components
- Appendixes
- Index
Product information
- Title: Sams Teach Yourself Django in 24 Hours
- Author(s):
- Release date: February 2008
- Publisher(s): Sams
- ISBN: 9780768680331
You might also like
book
The Definitive Guide to Django: Web Development Done Right, Second Edition
'Lead developer Jacob Kaplan-Moss and Django creator Adrian Holovaty show you how they use this framework …
book
Every Molecule Tells a Story
Written by a seasoned teacher, speaker, and writer in the field of chemistry, this text serves …
video
Mastering Django Part 1 - AJAX, Class Based Views, Forms
Welcome to the Mastering Django Series! Learn time saving and advanced techniques to come to a …
book
The Complete Beginner's Guide to Drawing Animals
The Complete Beginner's Guide to Drawing Animals features dozens of comprehensive drawing lessons designed to teach …