Last active
January 15, 2020 12:25
-
-
Save akleemans/b61a6409daea0faea9287b03d97d59c9 to your computer and use it in GitHub Desktop.
Simple development web in Python for serving static files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, send_from_directory | |
app = Flask(__name__) | |
@app.route('/<path:path>') | |
def send_files(path): | |
return send_from_directory('static', path) | |
if __name__ == "__main__": | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment