Web Development with Django Cookbook, 2/e(Paperback)
暫譯: Django 網頁開發食譜(第二版)
Aidas Bendoraitis
- 出版商: Packt Publishing
- 出版日期: 2016-01-29
- 售價: $2,290
- 貴賓價: 9.5 折 $2,176
- 語言: 英文
- 頁數: 384
- 裝訂: Paperback
- ISBN: 1785886770
- ISBN-13: 9781785886775
-
相關分類:
Django
海外代購書籍(需單獨結帳)
商品描述
Key Features
- This is the latest book on the market that will help you take advantage of the new features added to Django 1.8
- This book consists of recipes of varying complexities to help you create multilingual, responsive, and scalable websites with Django
- This updated edition teaches you major Django functions and will help you improve your skills by developing models, forms, views, and templates
Book Description
Django is a web framework that was designed to strike a balance between rapid web development and high performance. It has the capacity to handle applications with high levels of user traffic and interaction, and can integrate with massive databases on the backend, constantly collecting and processing data in real time.
Through this book, you'll discover that collecting data from different sources and providing it to others in different formats isn't as difficult as you thought. It follows a task-based approach to guide you through all the web development processes using the Django framework. We'll start by setting up the virtual environment for a Django project and configuring it. Then you'll learn to write reusable pieces of code for your models and find out how to manage database schema changes using South migrations. After that, we'll take you through working with forms and views to enter and list data. With practical examples on using templates and JavaScript together, you will discover how to create the best user experience. In the final chapters, you'll be introduced to some programming and debugging tricks and finally, you will be shown how to test and deploy the project to a remote dedicated server.
By the end of this book, you will have a good understanding of the new features added to Django 1.8 and be an expert at web development processes.
What you will learn
- Get started with the basic configuration necessary to start any Django project
- Build a database structure out of reusable model mixins
- Manage forms and views and get to know some useful patterns that are used to create them
- Create handy template filters and tags that you can reuse in every project
- Integrate your own functionality into the Django CMS
- Manage hierarchical structures with MPTT
- Import data from local sources and external web services as well as exporting your data to third parties
- Implement a multilingual search with Haystack
- Test and deploy your project efficiently
About the Author
Aidas Bendoraitis has been professionally working with web technologies for over a decade. Over the past nine years at a Berlin-based company, studio 38 pure communication GmbH, he has developed a number of small-scale and large-scale Django projects―mostly in the cultural area―together with a creative team. At the moment, he is also working as a software architect at a London-based mobile startup, Hype.
Aidas regularly attends meetups of Django User Group Berlin, occasionally visits Django and Python conferences, and writes a weblog about Django: http://djangotricks.blogspot.com/.
Table of Contents
- Getting Started with Django 1.8
- Database Structure
- Forms and Views
- Templates and JavaScript
- Custom Template Filters and Tags
- Model Administration
- Django CMS
- Hierarchical Structures
- Data Import and Export
- Bells and Whistles
- Testing and Deployment
商品描述(中文翻譯)
**主要特點**
- 這是市場上最新的書籍,將幫助您利用 Django 1.8 中新增的功能。
- 本書包含不同複雜度的食譜,幫助您使用 Django 創建多語言、響應式和可擴展的網站。
- 本更新版教您主要的 Django 功能,並通過開發模型、表單、視圖和模板來提升您的技能。
**書籍描述**
Django 是一個網頁框架,旨在平衡快速的網頁開發與高效能。它能夠處理高用戶流量和互動的應用程式,並能夠與後端的大型數據庫整合,持續實時收集和處理數據。
通過本書,您將發現從不同來源收集數據並以不同格式提供給他人並不像您想的那麼困難。它採用基於任務的方法,指導您使用 Django 框架進行所有網頁開發過程。我們將從設置 Django 專案的虛擬環境和配置開始。然後,您將學會為您的模型編寫可重用的代碼,並了解如何使用 South 遷移管理數據庫架構變更。之後,我們將帶您了解如何使用表單和視圖來輸入和列出數據。通過實用的範例,您將發現如何將模板和 JavaScript 結合使用,以創造最佳的用戶體驗。在最後幾章中,您將接觸到一些編程和除錯技巧,最後,您將學會如何測試和部署專案到遠端專用伺服器。
在本書結束時,您將對 Django 1.8 中新增的功能有良好的理解,並成為網頁開發過程的專家。
**您將學到的內容**
- 開始進行任何 Django 專案所需的基本配置
- 建立可重用模型混合的數據庫結構
- 管理表單和視圖,了解一些用於創建它們的有用模式
- 創建方便的模板過濾器和標籤,您可以在每個專案中重用
- 將自己的功能整合到 Django CMS 中
- 使用 MPTT 管理層次結構
- 從本地來源和外部網路服務導入數據,以及將數據導出到第三方
- 使用 Haystack 實現多語言搜索
- 高效地測試和部署您的專案
**關於作者**
**Aidas Bendoraitis** 在網頁技術領域專業工作超過十年。在過去九年中,他在位於柏林的公司 studio 38 pure communication GmbH 開發了多個小型和大型的 Django 專案,主要集中在文化領域,並與創意團隊合作。目前,他還在倫敦的一家移動初創公司 Hype 擔任軟體架構師。
Aidas 定期參加 Django 使用者小組柏林的聚會,偶爾參加 Django 和 Python 會議,並撰寫有關 Django 的網誌:http://djangotricks.blogspot.com/。
**目錄**
1. 開始使用 Django 1.8
2. 數據庫結構
3. 表單和視圖
4. 模板和 JavaScript
5. 自定義模板過濾器和標籤
6. 模型管理
7. Django CMS
8. 層次結構
9. 數據導入和導出
10. 附加功能
11. 測試和部署