Skip to content

Instantly share code, notes, and snippets.

@hersonls
Created August 3, 2014 02:37
Show Gist options
  • Save hersonls/2ba81ad24fae9b625c27 to your computer and use it in GitHub Desktop.
Save hersonls/2ba81ad24fae9b625c27 to your computer and use it in GitHub Desktop.
Adding current site name to django admin title
{% 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