[Flask] [solved] Re: Is there a centralized way .. to preprocess URL requests headed to routes.py?

flaskee flaskee at protonmail.com
Fri Jul 3 11:05:41 EDT 2020


@app.before_request
def before_request():
app.logger.info("before_request_hits from: " + request.environ['REMOTE_ADDR'] + " called: " + request.url )

Thank you Gabor!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20200703/86244109/attachment.html>


More information about the Flask mailing list