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 are shown as follows: "If a user is already logged in, the get_current_user()
method returns a User
object, otherwise it returns None
parameter".
A block of code is set as follows:
import webapp2 class HomePage(webapp2.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, World!') app = webapp2.WSGIApplication([('/', HomePage)], debug=True)
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: "To create a new application, click the Create an Application button."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.