The Definitive Guide To Django: Web Development Done Right

3y ago
24 Views
2 Downloads
2.65 MB
372 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Maleah Dent
Transcription

The Definitive Guide to Django:Web Development Done RightAdrian Holovaty, Jacob K. Mosswww.djangobook.comBuy at AmazonISBN-10: 1590597257ISBN-13: 978-1590597255

The Django BookTable of Contents1 Introduction to Django.11.1 What Is a Web Framework?.11.2 The MVC Design Pattern.21.3 Django’s History.31.4 How to Read This Book.41.4.1 Required Programming Knowledge.51.4.2 Required Python Knowledge.51.4.3 New Django Features.51.4.4 Getting Help.51.4.5 What’s Next.62 Getting Started.72.1 Installing Python.72.2 Installing Django.72.2.1 Installing an Official Release.72.2.2 Installing Django from Subversion.82.3 Setting Up a Database.82.3.1 Using Django with PostgreSQL.92.3.2 Using Django with SQLite 3.92.3.3 Using Django with MySQL.92.3.4 Using Django Without a Database.92.4 Starting a Project.102.4.1 The Development Server.102.5 What’s Next?.113 The Basics of Dynamic Web Pages.123.1 Your First View: Dynamic Content.123.2 Mapping URLs to Views.133.3 How Django Processes a Request.153.3.1 How Django Processes a Request: Complete Details.163.4 URLconfs and Loose Coupling.173.5 404 Errors.173.6 Your Second View: Dynamic URLs.183.6.1 A Word About Pretty URLs.193.6.2 Wildcard URLpatterns.193.7 Django’s Pretty Error Pages.213.8 What’s next?.234 The Django Template System.244.1 Template System Basics.244.2 Using the Template System.254.2.1 Creating Template Objects.254.2.2 Rendering a Template.274.2.3 Multiple Contexts, Same Template.284.2.4 Context Variable Lookup.294.2.5 Playing with Context Objects.314.3 Basic Template Tags and Filters.324.3.1 Tags.324.3.2 Filters.364.4 Philosophies and Limitations.374.5 Using Templates in Views.384.6 Template Loading.39i

The Django BookTable of Contents4 The Django Template System4.6.1 render to response().414.6.2 The locals() Trick.424.6.3 Subdirectories in get template().424.6.4 The include Template Tag.434.7 Template Inheritance.444.8 What’s next?.475 Interacting with a Database: Models.485.1 The “Dumb” Way to Do Database Queries in Views.485.2 The MTV Development Pattern.495.3 Configuring the Database.505.4 Your First App.525.5 Defining Models in Python.535.6 Your First Model.545.7 Installing the Model.555.8 Basic Data Access.575.9 Adding Model String Representations.585.10 Inserting and Updating Data.595.11 Selecting Objects.605.11.1 Filtering Data.615.11.2 Retrieving Single Objects.615.11.3 Ordering Data.625.11.4 Chaining Lookups.635.11.5 Slicing Data.635.12 Deleting Objects.645.13 Making Changes to a Database Schema.645.13.1 Adding Fields.645.13.2 Removing Fields.665.13.3 Removing Many-to-Many Fields.665.13.4 Removing Models.665.14 What’s Next?.676 The Django Administration Site.686.1 Activating the Admin Interface.686.2 Using the Admin Interface.696.2.1 Users, Groups, and Permissions.766.3 Customizing the Admin Interface.776.4 Customizing the Admin Interface’s Look and Feel.796.5 Customizing the Admin Index Page.796.6 When and Why to Use the Admin Interface.806.7 What’s Next?.807 Form Processing.817.1 Search.817.2 The “Perfect Form”.837.3 Creating a Feedback Form.837.4 Processing the Submission.867.5 Custom Validation Rules.877.6 A Custom Look and Feel.887.7 Creating Forms from Models.897.8 What’s Next?.90ii

The Django BookTable of Contents8 Advanced Views and URLconfs.918.1 URLconf Tricks.918.1.1 Streamlining Function Imports.918.1.2 Using Multiple View Prefixes.928.1.3 Special-Casing URLs in Debug Mode.938.1.4 Using Named Groups.938.1.5 Understanding the Matching/Grouping Algorithm.958.1.6 Passing Extra Options to View Functions.958.1.7 Using Default View Arguments.998.1.8 Special-Casing Views.1008.1.9 Capturing Text in URLs.1008.1.10 Determining What the URLconf Searches Against.1018.2 Including Other URLconfs.1028.2.1 How Captured Parameters Work with include().1028.2.2 How Extra URLconf Options Work with include().1038.3 What’s Next?.1049 Generic Views.1059.1 Using Generic Views.1059.2 Generic Views of Objects.1069.3 Extending Generic Views.1079.3.1 Making “Friendly” Template Contexts.1079.3.2 Adding Extra Context.1089.3.3 Viewing Subsets of Objects.1099.3.4 Complex Filtering with Wrapper Functions.1109.3.5 Performing Extra Work.1109.4 What’s Next?.11110 Extending the Template Engine.11210.1 Template Language Review.11210.2 RequestContext and Context Processors.11210.2.1 django.core.context processors.auth.11610.2.2 django.core.context processors.debug.11610.2.3 django.core.context processors.i18n.11610.2.4 django.core.context processors.request.11610.2.5 Guidelines for Writing Your Own Context Processors.11610.3 Inside Template Loading.11710.4 Extending the Template System.11810.4.1 Creating a Template Library.11810.4.2 Writing Custom Template Filters.11910.4.3 Writing Custom Template Tags.12010.4.4 Shortcut for Simple Tags.12410.4.5 Inclusion Tags.12510.5 Writing Custom Template Loaders.12610.6 Using the Built-in Template Reference.12710.7 Configuring the Template System in Standalone Mode.12810.8 What’s Next.12811 Generating Non-HTML Content.

The Definitive Guide to Django: Web Development Done Right Adrian Holovaty, Jacob K. Moss www.djangobook.com Buy at Amazon ISBN-10: 1590597257 ISBN-13: 978-1590597255

Related Documents:

Session 18 (Working with Django Web Framework) Installing Django, Setting Up Django Working with Web Application Development Django API, Django Admin App, Django Views Django Templates CRUD Operation using Django Working with Django with BootStrap 4.0 Working with Django Forms Django Cl

Python Django Certification Training 3 P a g e About the Program Intellipaat’s Django course makes you master the Django REST framework, Django models, Django AJAX, Django jQuery, etc. In this best Python Django course, you will learn about the web framework by doi

Django Included Apps django.contrib.auth An authentication system. django.contrib.contenttypes A framework for content types. django.contrib.sessions A session framework. django.contrib.sites A framework for managing multiple sites with one Django installation. django

Django ORM Cookbook Documentation, Release 2.0 Django ORM Cookbook is a book about doing things with Django ORM and Django models. Django is a "MTV" (Model-Template-View) framework - This book provides a deep dive into the Mpart. They take the form of about 50 questions of the form How to do X with Django ORM/Queryset/Models. Contents 1

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

Django Admin Cookbook is a book about doing things with Django admin. It is targeted towards intermediate Django developers, who have some experience with Django admin, but are looking to expand their knowledge of Django

Django Blog – Ch 1-3 Opening Report 02 – 09/07 – 09/13 Django Blog – Ch 1 to 3 Django Deployment – Ch14 Your Django Blog 03 – 09/14 – 09/20 SEO Strategy – Ch 4-6 Django Social Website - Ch 4-6 04 – 09/21 – 09/27 Django Social Website - Ch 4-6 Your Social Site