biweeklybudget.flaskapp.cli_commands module

class biweeklybudget.flaskapp.cli_commands.CustomLoggingWSGIRequestHandler(request, client_address, server)[source]

Bases: werkzeug.serving.WSGIRequestHandler

Extend werkzeug request handler to include processing time in logs

handle()[source]

Handles a request ignoring dropped connections.

log_request(code='-', size='-')[source]

Log an accepted request.

This is called by send_response().

send_response(*args, **kw)[source]

Send the response header and log the response code.

biweeklybudget.flaskapp.cli_commands.template_paths()[source]

Return a list of all Flask app template paths, to auto-reload on change.

from http://stackoverflow.com/a/41666467/211734

Returns:list of all template paths
Return type:list