- 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.
- Qt 5 and OpenCV 4 Computer Vision Projects
- 構(gòu)建移動(dòng)網(wǎng)站與APP:HTML 5移動(dòng)開發(fā)入門與實(shí)戰(zhàn)(跨平臺(tái)移動(dòng)開發(fā)叢書)
- 數(shù)據(jù)庫系統(tǒng)原理及MySQL應(yīng)用教程
- Java Web基礎(chǔ)與實(shí)例教程
- SharePoint Development with the SharePoint Framework
- 大數(shù)據(jù)分析與應(yīng)用實(shí)戰(zhàn):統(tǒng)計(jì)機(jī)器學(xué)習(xí)之?dāng)?shù)據(jù)導(dǎo)向編程
- Java程序設(shè)計(jì)案例教程
- Web程序設(shè)計(jì):ASP.NET(第2版)
- CodeIgniter Web Application Blueprints
- 深入實(shí)踐DDD:以DSL驅(qū)動(dòng)復(fù)雜軟件開發(fā)
- C語言程序設(shè)計(jì)
- Python大規(guī)模機(jī)器學(xué)習(xí)
- Visual Basic 程序設(shè)計(jì)實(shí)踐教程
- WCF全面解析
- Slick2D Game Development