Chapter 10. Template Inheritance and WTForms in Waiter Caller Project

In the previous chapter, we created a rudimentary user account system. However, we only made a very simple route access controlled—the one that simply showed the string "You are logged in". In this chapter, we'll add some more of the desired functionality, and allow logged-in users to add restaurant tables, see the URLs associated with these tables, and view attention requests from customers. One of the problems we'll come across is that of wanting to reuse the same elements for different pages of our application. You'll see how to solve this problem without code duplication by using Jinja's inheritance system. As mentioned in the previous chapter, we do not communicate very ...

Get Flask By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.