Skip to content

Instantly share code, notes, and snippets.

@akleemans
Last active January 15, 2020 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akleemans/b61a6409daea0faea9287b03d97d59c9 to your computer and use it in GitHub Desktop.
Save akleemans/b61a6409daea0faea9287b03d97d59c9 to your computer and use it in GitHub Desktop.
Simple development web in Python for serving static files
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