Flask - sjherrick/code-base GitHub Wiki
Flask
Logging page views
@app.after_request
def log_request(response):
# We dont care about logging requests to the root directory "/" so we dont create a log
if request.path == "/":
return response
log_request_handler(response)
return response