favicon url
parent
c2e68881d9
commit
4d3a309940
|
@ -184,4 +184,12 @@ def create_app(test_config=None):
|
||||||
url = url_for("uploaded_files", filename=f.filename)
|
url = url_for("uploaded_files", filename=f.filename)
|
||||||
return upload_success(url=url)
|
return upload_success(url=url)
|
||||||
|
|
||||||
|
@app.route("/favicon.ico")
|
||||||
|
def favicon():
|
||||||
|
return send_from_directory(
|
||||||
|
os.path.join(app.root_path, "static"),
|
||||||
|
"favicon.ico",
|
||||||
|
mimetype="image/vnd.microsoft.icon",
|
||||||
|
)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||||
<title>{% block title %}{% endblock title %}</title>
|
<title>{% block title %}{% endblock title %}</title>
|
||||||
<meta name="description" content="{% block header_description %}{% endblock header_description %}" />
|
<meta name="description" content="{% block header_description %}{% endblock header_description %}" />
|
||||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
|
||||||
{% for h in headers %}
|
{% for h in headers %}
|
||||||
{{h.content | safe}}
|
{{h.content | safe}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue