Created
August 3, 2014 02:37
-
-
Save hersonls/2ba81ad24fae9b625c27 to your computer and use it in GitHub Desktop.
Adding current site name to django admin title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "admin/base.html" %} | |
{% block title %}{{ title }} | {{ site.name }}{% endblock %} | |
{% block branding %} | |
<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1> | |
{% endblock %} | |
{% block nav-global %}{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment