Skip to content

Commit a56ae9f

Browse files
committed
Add 4.1.12 Admin site template modification
1 parent 8737f52 commit a56ae9f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mysite/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@
8181
# https://docs.djangoproject.com/en/1.6/howto/static-files/
8282

8383
STATIC_URL = '/static/'
84+
# TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
85+
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]

templates/admin/base_site.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "admin/base.html" %}
2+
3+
{% block title %}{{ title }} | {{ site_title|default:_('Jo site admin') }}{% endblock %}
4+
5+
{% block branding %}
6+
<h1 id="site-name"><a href="{% url 'admin:index' %}">Jo Polls administration</a></h1>
7+
{% endblock %}
8+
9+
{% block nav-global %}{% endblock %}

0 commit comments

Comments
 (0)