Skip to content

Instantly share code, notes, and snippets.

@Bentley4
Created April 29, 2012 16:48
Show Gist options
  • Save Bentley4/2551827 to your computer and use it in GitHub Desktop.
Save Bentley4/2551827 to your computer and use it in GitHub Desktop.
flaskwp1.py with H. Dunlop's suggestion
import flask
app = flask.Flask('flaskwp1')
webcode = open('webcode.html').read()
@app.route('/')
def webprint():
flask.url_for('static', filename='webcodestyle.css')
return webcode
if __name__ == '__main__':
app.run(host = '0.0.0.0', port = 3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment