Web Apps with web2py: The Controller & View

placeholder

web2py relies heavily on the Model-View-Controller (MVC) paradigm. The controller holds business logic in a web2py app and the view file consists of HTML and has embedded Python code in the form of web2py template language. In this course learn how to create your own web2py app. Start by working with the index view and About page practice editing apps from your local machine using a familiar text editor and compare the mapping between your machines file structure and the web2py app directory structure. Next examine the relationship between the controller and views explore dictionaries and the view.html file and identify important global variables such as response request db and session. After that explore session and request variables and how sessions are supported out of the box in web2py. Finally learn how to deploy a simple app to a third-party web server such as PythonAnywhere.