Workflow Conditional models Workflow The web2py workflow is the following: An HTTP requests arrives to the web server (the built-in Rocket server or a different server conne...
URL Absolute urls Digitally signed urls URL The URL function is one of the most important functions in web2py. It generates internal URL paths for the actions and the stat...
Execution environment Execution environment While everything discussed here works fine, we recommend instead building your application using components, as described in Chapte...
Defining new options for your instances More fun: a bunch of shortcuts A trick for the Emperor: automatically import shortcuts for your vassals An advanced trick: embedding short...
commit and rollback commit and rollback The insert, truncate, delete, and update operations aren’t actually committed until web2py issues the commit command. The create and...
session Don’t store user-defined classes in session Separate sessions session session is another instance of the Storage class. Whatever is stored into session for examp...
Efficiency and scalability Efficiency tricks Sessions in database HAProxy a high availability load balancer Cleaning up sessions Uploading files in database Collecting tickets...
Simple examples Say hello Debugging toolbar Let’s count Say my name Postbacks Internationalization Simple examples Say hello Here, as an example, we create a simple web...
The views The views web2py uses Python for its models, controllers, and views, although it uses a slightly modified Python syntax in the views to allow more readable code witho...