Skip to content

Instantly share code, notes, and snippets.

View ilyakh's full-sized avatar

Ilyá Kostolomov ilyakh

View GitHub Profile
@ilyakh
ilyakh / app.py
Created October 25, 2015 18:54 — forked from rduplain/app.py
Flask: Add a second static directory to Flask, in ../static/.
from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route('/base/<path:filename>')
def base_static(filename):
return send_from_directory(app.root_path + '/../static/', filename)