Web Apps with web2py: The Controller & View
web2py 2.21
| Intermediate
- 11 Videos | 1h 21m 36s
- Includes Assessment
- Earns a Badge
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 machine's 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.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this coursecreate a simple web2py app starting with the default appidentify how to update the content of the index template to create a new homepage for the appdemonstrate how to set up a controller and view, and the relationship which exists between themrecall how views are affected by the return types for their corresponding controllersrecognize how to pass query parameters through a URL to a web2py app
-
illustrate how to use forms to submit POST data to a web2py apprecognize how request and session variables can be accessed in web2pycompare the different scopes of request and session variablesuse the cloud-hosted PythonAnywhere service to deploy a web2py app to end userssummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 45sUP NEXT
-
2.Creating a New web2py Application5m 38s
-
3.Building the Index Page8m 39s
-
4.Wiring up a Controller and View5m
-
5.Setting Different Return Types for Controllers10m 38s
-
6.Passing Values to a web2py Application8m 40s
-
7.Submitting POST Data Using Forms8m 59s
-
8.Using Request and Session Variables7m 20s
-
9.Contrasting Request and Session Variables10m 15s
-
10.Deploying a web2py App with PythonAnywhere10m 15s
-
11.Course Summary3m 27s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.