code: def favicon(request):
      
      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)
docs: It returns favicon's location