flask.helpers safe_join Example Code

safe_join is a callable within the flask.helpers module of the Flask project.

flash, get_root_path, make_response, send_file, and url_for are several other callables with code examples from the same flask.helpers package.

Example 1 from CTFd

CTFd (homepage) is a capture the flag (CTF) hacking web app built with Flask. The application can be used as-is to run CTF events, or modified for custom rules for related scenarios. CTFd is open sourced under the Apache License 2.0.

CTFd / CTFd / views.py