Module frontend.app

Sub-modules

frontend.app.forms
frontend.app.helpers
frontend.app.views

Functions

def internal_server_error(e)

Handle 500 Internal Server Error.

Args

e : Exception
The exception raised.

Returns

tuple
A response with a 500 status code and a rendered error page.
def page_not_found(e)

Handle 404 Not Found errors.

Args

e : Exception
The exception raised.

Returns

tuple
A response with a 404 status code and a rendered error page.
def serve_bootstrap(filename)

Serve static files from the 'static' directory.

Args

filename : str
The path to the static file.

Returns

Response
The static file to be served.