There are a number of text conventions used throughout this book.
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 modelsclass SuperHero(models.Model): name = models.CharField(max_length=100)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
name = request.GET['user'] sql = "SELECT email FROM users WHERE username = '{}';".format(name)
Any command-line input or output is written as follows:
$ django-admin.py --version1.6.1
Bold: Indicates a new term, an important word, or words that you see onscreen. ...