- Django Design Patterns and Best Practices
- Arun Ravindran
- 260字
- 2021-07-23 19:36:18
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, folder names, filenames, package names and user input are shown as follows: "The HttpResponse
object gets rendered into a string."
A block of code is set as follows:
from django.db import models class SuperHero(models.Model): name = models.CharField(max_length=100)
Any command-line (typically Unix) input or output is written as follows:
$ django-admin.py --version 1.6.1
Lines beginning with the dollar prompt ($ sign) are to be input at the shell (but skip the prompt itself). Remaining lines are the system output, which might get trimmed using ellipsis (…) if it gets really long.
Each chapter (except the first) will have a story box styled as follows:
Note
SuperBook Chapter Title
It was a dark and stormy night; silhouettes of the caped crusaders moved within the charred ruins of the vast Ricksonian Digital Library for Medieval Dark Arts. Picking up what looked like the half-melted case of a hard disk; Captain Obvious gritted his teeth and shouted, "We need backup!"
Story boxes are best read sequentially to follow the linear narrative.
Patterns described in this book are written in the format mentioned in the section named Patterns in this Book in Chapter 1, Django and Patterns.
Tips and best practices are styled in the following manner:
New terms and important words are shown in bold.
- Python量化投資指南:基礎、數據與實戰
- Angular UI Development with PrimeNG
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Python從菜鳥到高手(第2版)
- 你不知道的JavaScript(中卷)
- 組態軟件技術與應用
- C語言程序設計
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Windows Embedded CE 6.0程序設計實戰
- 代碼閱讀
- HTML5 WebSocket權威指南
- Spark for Data Science
- Python AI游戲編程入門:基于Pygame和PyTorch
- Expert Angular
- 數據科學之編程技術:使用R進行數據清理、分析與可視化