買這商品的人也買了...
-
$690$587 -
$2,290$2,176 -
$880$695 -
$590$561 -
$980$774 -
$490$466 -
$3,660$3,477 -
$990$891 -
$600$480 -
$1,180$1,003 -
$520$406 -
$980$774 -
$680$537 -
$490$417 -
$620$527 -
$1,558Introduction to Algorithms, 3/e (IE-Paperback)
-
$480$374 -
$960$758 -
$399CompTIA Security+Study Guide: Exam SY0-201, 4/e (Paperback)
-
$780$616 -
$690$587 -
$750$638 -
$520$442 -
$450$383 -
$360$284
相關主題
商品描述
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
商品描述(中文翻譯)
在短短24堂課,每堂課不超過一小時,您將能夠使用Django這個基於Python的強大網頁開發框架,建立功能完整的生產網站。
本書專為對Python程式語言有一定熟悉度的經驗豐富的網站開發者設計,採用簡單明瞭的逐步教學方式。每一課都在前一課的基礎上進行,讓您從零開始學習在網站上實現Django框架的基本要素。
逐步的指導將帶您完成最常見的Django任務。
每堂課結尾的問答、測驗和練習幫助您檢測自己的知識。
註解和提示指出捷徑和解決方案。
學習如何…
- 安裝和配置Django網頁開發框架
- 清晰地分離數據、邏輯和視圖層
- 使用構建模板和視圖實現網站介面
- 利用模板和視圖來存儲、訪問和檢索數據
- 使用Django表單庫
- 定義自訂標籤和過濾器以減少編碼
- 使用註冊、授權、登錄和權限來保護網站
- 管理會話和Cookies
- 實現中介軟體以處理請求和回應
- 創建網站地圖以告知搜尋引擎您的內容
- 國際化您的網站
- 使用快取來優化性能
- 在多種配置中部署Django
- 使用Django的管理介面維護網站
引言 1
第一部分:創建網站框架
第1小時:理解Django 7
第2小時:創建您的第一個網站 19
第3小時:向您的網站添加模型和對象 37
第4小時:創建初始視圖 63
第二部分:實現網站介面
第5小時:在視圖中使用來自數據庫的數據 81
第6小時:配置網頁視圖 103
第7小時:實現Django模板以創建自訂視圖 117
第8小時:使用內建模板標籤增強視圖 139
第9小時:使用內建模板過濾器增強視圖 155
第10小時:向視圖添加表單 185
第11小時:使用視圖在數據庫中添加和更新數據 209
第12小時:利用通用視圖 231
第13小時:進階視圖配置 269
第三部分:實現功能完整的網站
第14小時:管理網站用戶 295
第15小時:添加網站安全性 313
第16小時:管理會話和Cookies 333
第17小時:在管理介面中自訂模型 347
第18小時:自訂管理介面 365
第四部分:實現進階網站組件
第19小時:實現中介軟體 383
第20小時:國際化和本地化 407
第21小時:創建網站地圖 423
第22小時:實現多個網站 437
第23小時:配置快取 451
第24小時:部署Django 465
附錄
附錄A:Django資源 477
附錄B:Django表單欄位對象 481
附錄C:格式化日期和時間 491
索引 493