from flask import url_for # url_for(endpoint, **values) url_for('static') url_for('static', filename='js/index.js')