“Adicionar Favicon no Admin Django” Respostas de código

Adicionar Favicon no Admin Django

#If favicon is in /app/static/img/favicon.ico, link it into the 
#{% block extrahead %} of this file: /app/templates/admin/base_site.html
  
{% extends "admin/base.html" %}

    {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}

    {% block extrahead %}
        <link rel="icon" href="{{STATIC_URL}}img/favicon.ico" sizes="48x48" />
    {% endblock %}
    {% block branding %}
        <h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
    {% endblock %}
    
#In settings.py, INSTALLED_APPS be sure your app is listed 
#before django.contrib.admin
MitchAloha

Adicionar Favicon no Admin Django


    {% extends "admin/base.html" %}

    {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}

    {% block extrahead %}
        <link rel="icon" href="{{STATIC_URL}}img/favicon.ico" sizes="48x48" />
    {% endblock %}
    {% block branding %}
        <h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
    {% endblock %}

Fine Fish

Respostas semelhantes a “Adicionar Favicon no Admin Django”

Perguntas semelhantes a “Adicionar Favicon no Admin Django”

Mais respostas relacionadas para “Adicionar Favicon no Admin Django” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código