# retoor from molodetz import config def static_url(path): if not path.startswith("/static/") or path.startswith("/static/uploads/"): return path return f"/static/v{config.STATIC_VERSION}/{path[len('/static/'):]}"