Last active
March 26, 2020 13:19
-
-
Save karnzx/481bb87acd9b8740f5481780dcd6a5b7 to your computer and use it in GitHub Desktop.
Medium Brython -app.py
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
from flask import Flask, render_template | |
import folium | |
app = Flask(__name__) | |
@app.route('/') | |
def home(): | |
return '<h1><a href="/map">Map</a></h1>' | |
@app.route('/map') | |
def map(): | |
return render_template('map.html') | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment