Added favicon
This commit is contained in:
parent
52188e0fb2
commit
eece1844f2
2 changed files with 7 additions and 1 deletions
BIN
app/static/favicon.ico
Normal file
BIN
app/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -1,7 +1,8 @@
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from flask import url_for, render_template, abort
|
from flask import url_for, render_template, abort, send_from_directory
|
||||||
from flask_login import login_required
|
from flask_login import login_required
|
||||||
|
import os
|
||||||
|
|
||||||
from app import app
|
from app import app
|
||||||
from models import Order, Location
|
from models import Order, Location
|
||||||
|
@ -45,6 +46,11 @@ def profile():
|
||||||
return render_template('profile.html')
|
return render_template('profile.html')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/favicon.ico')
|
||||||
|
def favicon():
|
||||||
|
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='image/x-icon')
|
||||||
|
|
||||||
|
|
||||||
if app.debug: # add route information
|
if app.debug: # add route information
|
||||||
@app.route('/routes')
|
@app.route('/routes')
|
||||||
@login_required
|
@login_required
|
||||||
|
|
Loading…
Reference in a new issue