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
-
2m 45s
-
5m 38sIn this video, you will learn how to create a simple web2py app starting with the default app. FREE ACCESS
-
8m 39sIn this video, you will learn how to update the content of the index template to create a new homepage for the app. FREE ACCESS
-
5mIn this video, you will learn how to set up a controller and view, and the relationship which exists between them. FREE ACCESS
-
10m 38sUpon completion of this video, you will be able to recall how views are affected by the return types for their corresponding controllers. FREE ACCESS
-
8m 40sAfter completing this video, you will be able to recognize how to pass query parameters through a URL to a web2py application. FREE ACCESS
-
8m 59sAfter completing this video, you will be able to illustrate how to use forms to submit POST data to a web2py application. FREE ACCESS
-
7m 20sUpon completion of this video, you will be able to recognize how request and session variables can be accessed in web2py. FREE ACCESS
-
10m 15sIn this video, you will compare the different scopes of request and session variables. FREE ACCESS
-
10m 15sLearn how to use the PythonAnywhere service, hosted on the cloud, to deploy a web2py app to end users. FREE ACCESS
-
3m 27s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.YOU MIGHT ALSO LIKE
Audiobook
Python Essentials For Dummies