def favicon(request):
    """
    It returns favicon's location
    """
    favicon = u"{}tree/images/favicon.ico".format(settings.STATIC_URL)
    try:
        from seo.models import MetaSite
        site = MetaSite.objects.get(default=True)
        return HttpResponseRedirect(site.favicon.url)
    except:
        return HttpResponseRedirect(favicon)
It returns favicon's location