Skip to content

Instantly share code, notes, and snippets.

@bbenne10
Created March 2, 2016 21:52
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 bbenne10/b3095c2bfce21fc07224 to your computer and use it in GitHub Desktop.
Save bbenne10/b3095c2bfce21fc07224 to your computer and use it in GitHub Desktop.
Testing
<!-- this needs to be at 'static/index.tmpl' relative to test.py. wall.png can be any renderable file...
I just used a random wallpaper I have -->
<html>
<body>
<img src="{{ url_for('static', filename='wall.png') }}">
</body>
</html>
import flask
app = flask.Flask('test')
@app.route('/')
def render_root():
return flask.render_template('index.tmpl')
if __name__ == '__main__':
app.run(port=5001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment