File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ from flask import Flask , render_template
2+
3+ app = Flask (__name__ )
4+
5+
6+ @app .route ('/' )
7+ def index ():
8+ return render_template ('index.html' )
9+
10+
11+ if __name__ == '__main__' :
12+ app .run ()
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < link rel ="shortcut icon " href ="{{ url_for('static', filename='favicon.ico') }} ">
6+ < title > Favicon</ title >
7+ </ head >
8+ < body >
9+ < p > Hello favicon</ p >
10+ </ body >
11+ </ html >
Original file line number Diff line number Diff line change 191917 . [ flask-cors] ( https://xugaoxiang.com/2020/08/26/flask-17-cors/ )
202018 . [ flask-jwt-extended] ( https://xugaoxiang.com/2020/09/01/flask-18-jwt-extended/ )
212119 . [ flask-socketio] ( https://xugaoxiang.com/2020/10/08/flask-19-socketio/ )
22- 20 . [ flask-apscheduler] ( https://xugaoxiang.com/2020/10/08/flask-20-apscheduler/ )
22+ 20 . [ flask-apscheduler] ( https://xugaoxiang.com/2020/10/08/flask-20-apscheduler/ )
23+ 21 . [ 添加favicon] ( https://xugaoxiang.com/2020/11/11/flask-21-favicon/ )
You can’t perform that action at this time.
0 commit comments