Chapter 19.4. WebConsole

TurboGears also provides a web-based version of the interactive Python prompt. You can play with your model objects, add data, and even run adhoc tests from the WebConsole.

The Console also imports your model and sets up your database connection automatically so you can just get down to work. Admittedly, there’s nothing you can do in the Console that you couldn’t do from the tg-admin shell.

As you can see in Figure 19.8, the Console gives you the opportunity to create multi-line Python statements, or quick one liners.

Figure 19.8. WebConsole

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites 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.