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):
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