Created
March 2, 2016 21:52
-
-
Save bbenne10/b3095c2bfce21fc07224 to your computer and use it in GitHub Desktop.
Testing
This file contains 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
<!-- 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> |
This file contains 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
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