app = Flask(__name__, static_url_path='/js_and_css')
from flask import send_from_directory
@app.route('/css/<filename>')
def css_folder(filename):
return send_from_directory('css', filename)
@app.route('/js/<filename>')
def js_folder(filename):
return send_from_directory('js', filename)