Web Apps with web2py: The Controller & View

web2py 2.21    |    Intermediate
  • 11 videos | 1h 21m 36s
  • Includes Assessment
  • Earns a Badge
Rating 4.8 of 5 users Rating 4.8 of 5 users (5)
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

  • 2m 45s
  • 5m 38s
    In this video, you will learn how to create a simple web2py app starting with the default app. FREE ACCESS
  • Locked
    3.  Building the Index Page
    8m 39s
    In this video, you will learn how to update the content of the index template to create a new homepage for the app. FREE ACCESS
  • Locked
    4.  Wiring up a Controller and View
    5m
    In this video, you will learn how to set up a controller and view, and the relationship which exists between them. FREE ACCESS
  • Locked
    5.  Setting Different Return Types for Controllers
    10m 38s
    Upon completion of this video, you will be able to recall how views are affected by the return types for their corresponding controllers. FREE ACCESS
  • Locked
    6.  Passing Values to a web2py Application
    8m 40s
    After completing this video, you will be able to recognize how to pass query parameters through a URL to a web2py application. FREE ACCESS
  • Locked
    7.  Submitting POST Data Using Forms
    8m 59s
    After completing this video, you will be able to illustrate how to use forms to submit POST data to a web2py application. FREE ACCESS
  • Locked
    8.  Using Request and Session Variables
    7m 20s
    Upon completion of this video, you will be able to recognize how request and session variables can be accessed in web2py. FREE ACCESS
  • Locked
    9.  Contrasting Request and Session Variables
    10m 15s
    In this video, you will compare the different scopes of request and session variables. FREE ACCESS
  • Locked
    10.  Deploying a web2py App with PythonAnywhere
    10m 15s
    Learn how to use the PythonAnywhere service, hosted on the cloud, to deploy a web2py app to end users. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.9 of 13 users Rating 4.9 of 13 users (13)
Rating 4.5 of 10 users Rating 4.5 of 10 users (10)
Rating 4.4 of 12 users Rating 4.4 of 12 users (12)