官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "You can deactivate your environment at any time with the deactivate command."

A block of code is set as follows:

from django.contrib import admin
from .models import Post

admin.site.register(Post)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog.apps.BlogConfig',
]

Any command-line input or output is written as follows:

$ python manage.py startapp blog

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Fill in the form and click on the SAVE button."

Warnings or important notes appear like this.

Tips and tricks appear like this.

主站蜘蛛池模板: 龙陵县| 互助| 香格里拉县| 刚察县| 栾城县| 通化市| 衢州市| 通州市| 连城县| 深圳市| 大邑县| 墨脱县| 洛隆县| 黔江区| 穆棱市| 潞城市| 弥渡县| 大关县| 梁山县| 清苑县| 兴文县| 南城县| 九台市| 贵港市| 德州市| 阳信县| 内丘县| 南昌县| 马关县| 白河县| 新巴尔虎右旗| 囊谦县| 昌黎县| 长顺县| 黄大仙区| 界首市| 新龙县| 同仁县| 石柱| 三河市| 安溪县|