favicon
parent
5782ffa97f
commit
c6439f6687
|
@ -1,5 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from flask import Flask, request, render_template
|
import os
|
||||||
|
from flask import Flask, request, render_template, send_from_directory
|
||||||
from user_agents import parse
|
from user_agents import parse
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@ -17,3 +18,8 @@ def browser():
|
||||||
ipaddr = request.environ['REMOTE_ADDR']
|
ipaddr = request.environ['REMOTE_ADDR']
|
||||||
uadata = parse(request.user_agent.string)
|
uadata = parse(request.user_agent.string)
|
||||||
return render_template('about.html', title='Datos del Navegador', ipaddr=ipaddr, uastr=str(uadata))
|
return render_template('about.html', title='Datos del Navegador', ipaddr=ipaddr, uastr=str(uadata))
|
||||||
|
|
||||||
|
@app.route('/favicon.ico')
|
||||||
|
def favicon():
|
||||||
|
return send_from_directory(os.path.join(app.root_path, 'static'),
|
||||||
|
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
Loading…
Reference in New Issue