- 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.
- 數據科學實戰手冊(R+Python)
- Puppet 4 Essentials(Second Edition)
- 算法零基礎一本通(Python版)
- Vue.js 3.0源碼解析(微課視頻版)
- C語言程序設計實踐教程
- Java Web開發詳解
- Natural Language Processing with Java and LingPipe Cookbook
- OpenResty完全開發指南:構建百萬級別并發的Web應用
- 深入淺出Python數據分析
- Mastering Apache Camel
- Getting Started with Electronic Projects
- 超好玩的Scratch 3.5少兒編程
- Tkinter GUI Programming by Example
- 軟件測試實驗實訓指南
- ROS Robotics Projects