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 course
    create a simple web2py app starting with the default app
    identify how to update the content of the index template to create a new homepage for the app
    demonstrate how to set up a controller and view, and the relationship which exists between them
    recall how views are affected by the return types for their corresponding controllers
    recognize how to pass query parameters through a URL to a web2py app
  • illustrate how to use forms to submit POST data to a web2py app
    recognize how request and session variables can be accessed in web2py
    compare the different scopes of request and session variables
    use the cloud-hosted PythonAnywhere service to deploy a web2py app to end users
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 45s
    UP NEXT
  • Playable
    2. 
    Creating a New web2py Application
    5m 38s
  • Locked
    3. 
    Building the Index Page
    8m 39s
  • Locked
    4. 
    Wiring up a Controller and View
    5m
  • Locked
    5. 
    Setting Different Return Types for Controllers
    10m 38s
  • Locked
    6. 
    Passing Values to a web2py Application
    8m 40s
  • Locked
    7. 
    Submitting POST Data Using Forms
    8m 59s
  • Locked
    8. 
    Using Request and Session Variables
    7m 20s
  • Locked
    9. 
    Contrasting Request and Session Variables
    10m 15s
  • Locked
    10. 
    Deploying a web2py App with PythonAnywhere
    10m 15s
  • Locked
    11. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.