July 2019
Beginner to intermediate
302 pages
9h 38m
English
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: "In Flask, a configuration is done on an attribute named config of the Flask object."
A block of code is set as follows:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello to the World of Flask!'
if __name__ == '__main__':
app.run()
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 flask_wtf.file import FileField, FileRequired class Product(db.Model): image_path ...