4.15.2014

django 'admin/base_site.html' location to customize the admin

You can find the right location of django writing this command

python -c "
import sys
sys.path = sys.path[1:]
import django
print(django.__path__)"




In my case on mac
['/Library/Python/2.7/site-packages/django']



or Just Use This after make 'YOURPROJECTFOLDER\templates\admin\base_site.html'

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

{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}

{% block branding %}
{% trans 'YourSiteName' %}

{% endblock %}

{% block nav-global %}{% endblock %}
 

No comments: