![]() ![]() ![]() ![]() 1 Introduction to Django.1ġ.1 What Is a Web Framework?.1ġ.2 The MVC Design Pattern.2ġ.3 Django’s History.3ġ.4 How to Read This Book.4ġ.4.1 Required Programming Knowledge.5ġ.4.2 Required Python Knowledge.5ġ.4.3 New Django Features.5ġ.4.4 Getting Help.5ġ.4.5 What’s Next.6Ģ Getting Started.7Ģ.1 Installing Python.7Ģ.2 Installing Django.7Ģ.2.1 Installing an Official Release.7Ģ.2.2 Installing Django from Subversion.8Ģ.3 Setting Up a Database.8Ģ.3.1 Using Django with PostgreSQL.9Ģ.3.2 Using Django with SQLite 3.9Ģ.3.3 Using Django with MySQL.9Ģ.3.4 Using Django Without a Database.9Ģ.4 Starting a Project.10Ģ.4.1 The Development Server.10Ģ.5 What’s Next?.11ģ The Basics of Dynamic Web Pages.12ģ.1 Your First View: Dynamic Content.12ģ.2 Mapping URLs to Views.13ģ.3 How Django Processes a Request.15ģ.3.1 How Django Processes a Request: Complete Details.16ģ.4 URLconfs and Loose Coupling.17ģ.5 404 Errors.17ģ.6 Your Second View: Dynamic URLs.18ģ.6.1 A Word About Pretty URLs.19ģ.6.2 Wildcard URLpatterns.19ģ.7 Django’s Pretty Error Pages.21ģ.8 What’s next?.23Ĥ The Django Template System.24Ĥ.1 Template System Basics.24Ĥ.2 Using the Template System.25Ĥ.2.1 Creating Template Objects.25Ĥ.2.2 Rendering a Template.27Ĥ.2.3 Multiple Contexts, Same Template.28Ĥ.2.4 Context Variable Lookup.29Ĥ.2.5 Playing with Context Objects.31Ĥ.3 Basic Template Tags and Filters.32Ĥ.3.1 Tags.32Ĥ.3.2 Filters.36Ĥ.4 Philosophies and Limitations.37Ĥ.5 Using Templates in Views.38Ĥ.6 Template Loading.39Ĥ.6.1 render_to_response().41Ĥ.6.2 The locals() Trick.42Ĥ.6.3 Subdirectories in get_template().42Ĥ.6.4 The include Template Tag.43Ĥ.7 Template Inheritance.44Ĥ.8 What’s next?.47ĥ Interacting with a Database: Models.48ĥ.1 The “Dumb” Way to Do Database Queries in Views.48ĥ.2 The MTV Development Pattern.49ĥ.3 Configuring the Database.50ĥ.4 Your First App.52ĥ.5 Defining Models in Python.53ĥ.6 Your First Model.54ĥ.7 Installing the Model.55ĥ.8 Basic Data Access.57ĥ.9 Adding Model String Representations.58ĥ.10 Inserting and Updating Data.59ĥ.11 Selecting Objects.60ĥ.11.1 Filtering Data.61ĥ.11.2 Retrieving Single Objects.SOFTWARE PARADIGMS Stephen H. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |