- Flask Framework Cookbook
- Shalabh Aggarwal
- 208字
- 2021-08-05 17:17:19
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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "After that, create a new file called run.py
in the topmost folder."
A block of code is set as follows:
MESSAGES = { 'default': 'Hello to the World of Flask!', 'great': 'Flask is great!!', }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
from wtforms import FileField class Product(db.Model): image_path = db.Column(db.String(255)) def __init__(self, name, price, category, image_path): self.image_path = image_path class ProductForm(NameForm): image = FileField('Product Image')
Any command-line input or output is written as follows:
$ python setup.py install
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Fill up the form and click on Submit."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- VMware View Security Essentials
- JavaScript全程指南
- The Modern C++ Challenge
- Building a Game with Unity and Blender
- Learning RxJava
- JMeter 性能測(cè)試實(shí)戰(zhàn)(第2版)
- Python語(yǔ)言程序設(shè)計(jì)
- Dependency Injection in .NET Core 2.0
- Linux C編程:一站式學(xué)習(xí)
- Yii Project Blueprints
- Mastering Backbone.js
- Python圖形化編程(微課版)
- Android移動(dòng)開發(fā)案例教程:基于Android Studio開發(fā)環(huán)境
- TMS320LF240x芯片原理、設(shè)計(jì)及應(yīng)用
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)