Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

devops: add favicon.ico

  • Loading branch information...
commit 909ce22132ed081feca02e2fb255afa08b59611d 1 parent ead69a6
Yaniv Aknin yaniv-aknin authored
7 backend/app.py
View
@@ -1,11 +1,12 @@
from logging import getLogger
from os import environ
-from flask import Flask
+from flask import Flask, send_from_directory
from sqlalchemy import event
from sqlalchemy.engine import Engine
from utils.flaskutils import install_request_logger
+from utils.ext.path import Path
app = None
@@ -37,4 +38,8 @@ def initialize_app(settings):
import api ; api
import auth ; auth
+ @app.route('/favicon.ico')
+ def favicon():
+ return send_from_directory(Path(app.root_path)/'static', 'favicon.ico', mimetype='image/vnd.microsoft.icon')
+
return app
2  backend/templates/main.html
View
@@ -1,5 +1,7 @@
{% extends "base.html" %}
{% block head -%}
+ <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
+ <link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
{%- endblock %}
BIN  frontend/favicon.ico
View
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.