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 %}
 

1 comment:

machijackel said...

Casinos in the city – NJ casinos - Dr.MCD
Find the 남원 출장안마 best Atlantic City casinos, 포천 출장샵 New Jersey's 창원 출장마사지 only casino with 10 live-action 진주 출장마사지 table games, New Jersey was once the 계룡 출장마사지 home of one of the biggest casinos in