October 2018
Intermediate to advanced
332 pages
8h 9m
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: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."
A block of code is set as follows:
from flask import g....# Set some key with some value on a request contextg.some_key = "some_value"# Get a keyv = g.some_key# Get and remove a keyv = g.pop('some_key', "default_if_not_present")
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 import Flask, render_templatefrom