• Home
  • API Documentation
  • wte.views – View handlers

wte.views – View handlers¶

The views package contains the view handlers that implement the majority of the Web Teaching Environment’s functionality.

Each module within views contains an init function that initialises the routes that are handled by that module.

wte.views.help_page(request)[source]¶

Handles the /help route, displaying the appropriate help page.

wte.views.init(config, settings)[source]¶

Adds the following routes (route name, URL pattern, handler):

  • root – / – root()

Then calls the init function on all modules within views

wte.views.notfound_404(request)[source]¶

Handles 404 errors

wte.views.root(request)[source]¶

Handles the / route.

wte.views.servererror_500(request)[source]¶

Handles 500 errors

  • wte.util – Utility functions
  • wte.views.admin – Admin view handlers