Django Unleashed (Paperback) (《Django 解放》)

Andrew Pinkham

  • 出版商: SAMS
  • 出版日期: 2015-11-09
  • 定價: $1,960
  • 售價: 8.0$1,568
  • 語言: 英文
  • 頁數: 840
  • 裝訂: Paperback
  • ISBN: 0321985079
  • ISBN-13: 9780321985071
  • 相關分類: Django
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Django is an amazingly powerful system for creating modern, dynamic websites. But programming Django hasn’t always been easy–until now. Django Unleashed is your step-by-step, beginner-friendly guide to leveraging Django’s core capabilities and its powerful contributed library. You’ll learn in the most effective way possible: hands on, by building a fully functional Django website from scratch. You’ll even deploy the website to the cloud.

 

As you build your website, expert Django consultant and trainer Andrew Pinkham reveals how websites operate; how Django makes building websites easy; how to write Python code that leverages its immense capabilities; and how to build solutions that are robust, reliable, and secure. You’ll start simply and learn to solve increasingly challenging problems: mastering new features and understanding how Django’s architecture shapes their behavior, and gaining essential knowledge for working with any web framework, not just Django.

 

Drawing on his extensive experience teaching Django, Pinkham answers the key questions beginners ask most often. And as you gain experience, you’ll learn advanced techniques for enhancing site functionality and performance, strengthening security, promoting code reuse, and much more.

 

Detailed information on how to…

  • Quickly start a new Django project and establish a strong foundation for a growing site
  • Define how your data is organized and create a SQLite database to manage it
  • Quickly produce HTML with Django templates
  • Create dynamic webpages with Django’s URL patterns and views, including function views, class-based views, and generic views
  • Enable efficient, reliable data input with Django Forms and custom form validations
  • Understand the Model-View-Controller (MVC) architecture, compare it to Model-Template-Views, and gain a holistic understanding of Django’s structure
  • Write as little code as possible, simplify code reuse, and mitigate software decay by adhering to the Don’t Repeat Yourself paradigm.
  • Dive into Django source code to troubleshoot problems
  • Extend site functionality with Django’s contributed library
  • Protect your site with user authentication and permissions
  • Avoid security pitfalls such as SQL Injection, XSS, and CSRF
  • Optimize site performance
  • Deploy your site to a managed cloud service and to a PostgreSQL database

 

商品描述(中文翻譯)

Django是一個非常強大的系統,用於創建現代化、動態的網站。但是,直到現在,學習Django並不總是容易的。《Django Unleashed》是一本逐步指導、適合初學者的指南,教你如何充分利用Django的核心功能和強大的貢獻庫。通過從頭開始構建一個完整的Django網站,你將以最有效的方式學習:親自動手。你甚至還將把網站部署到雲端。

在構建網站的過程中,Django專家顧問和培訓師Andrew Pinkham將揭示網站的運作方式,以及Django如何使構建網站變得容易。你將學習如何編寫Python代碼,充分利用Django的強大功能,並構建出堅固、可靠和安全的解決方案。你將從簡單的開始,逐步解決越來越具有挑戰性的問題:掌握新功能,了解Django的架構如何影響其行為,並獲得使用任何網絡框架(不僅僅是Django)的基本知識。

基於他在教授Django方面的豐富經驗,Pinkham回答了初學者最常問的關鍵問題。隨著你的經驗增加,你將學習高級技巧,以增強網站功能和性能,加強安全性,促進代碼重用等等。

詳細介紹如何...

- 快速啟動一個新的Django項目,並為不斷增長的網站建立堅實的基礎
- 定義數據的組織方式,並創建一個SQLite數據庫來管理它
- 使用Django模板快速生成HTML
- 使用Django的URL模式和視圖創建動態網頁,包括函數視圖、基於類的視圖和通用視圖
- 使用Django表單和自定義表單驗證實現高效、可靠的數據輸入
- 理解模型-視圖-控制器(MVC)架構,將其與模型-模板-視圖進行比較,全面了解Django的結構
- 盡量少寫代碼,簡化代碼重用,並遵循“不要重複自己”的原則,減少軟件衰變
- 深入研究Django源代碼以解決問題
- 使用Django的貢獻庫擴展網站功能
- 通過用戶身份驗證和權限保護網站
- 避免SQL注入、XSS和CSRF等安全風險
- 優化網站性能
- 將網站部署到托管的雲服務和PostgreSQL數據庫中。