March 2012
Beginner to intermediate
138 pages
3h 21m
English
As we’ve seen, Tornado makes it easy to extend templates so that your web code can be easily reused throughout your application. With the addition of modules, you can make more finegrained decisions on what files, style, and script actions to include. However, while our examples have relied on how easy it is to work with Python’s native data types, it wouldn’t make much sense to hardcode big data structures into your applications in practice. Next, we’ll see how we can tie in persistent storage to deal with storing, serving, and editing dynamic content.