S
S
selfdestroy2018-02-12 04:30:59
Django
selfdestroy, 2018-02-12 04:30:59

How to change url in Django admin logo?

How to change url in Django admin logo? Default url is set/admin/
5a80ee45ddc97565726737.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2018-02-12
@selfdestroy

From django/contrin/admin/templates/admin/ copy your base_site.html file to templates/admin/.
In this file, in the branding block, insert your data

...
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
{% endblock %}
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question