Re: Django Admin - "Site administration"

2006-11-06 Thread Don Arbow

On Nov 6, 2006, at 12:03 AM, Carl Holm wrote:

> Thanks. I should clarify that I am looking for the string "Site
> administration" which I did not find in the base_site.html
> template. Is should also mention that I am running the dev version.


The actual physical location of the string "Site administration" is  
in the locale files, try this path (xx is the two character ISO  
language code):

django/conf/locale/xx/LC_MESSAGES/django.po

Don


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Admin - "Site administration"

2006-11-06 Thread Karen Tracey

Carl Holm wrote:
> Thanks. I should clarify that I am looking for the string "Site
> administration" which I did not find in the base_site.html
> template. Is should also mention that I am running the dev version.

You are right, "Site administration" is not coming (directly) from any
of the admin templates.  It is being set as the template context
variable "title" in the index function in admin's main.py:

def index(request):
return render_to_response('admin/index.html', {'title': _('Site
administration')}, context_instance=template.RequestContext(request))

The default contents of the template block content_title (specified in
admin's base.html template) is then wrapping the title value, if set,
in an h1 tag:

{% block content_title %}{% if title %}{{ title|escape
}}{% endif %}{% endblock %}

So it's coming from the admin code via the base.html template.

Karen


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Admin - "Site administration"

2006-11-06 Thread Carl Holm

Thanks. I should clarify that I am looking for the string "Site 
administration" which I did not find in the base_site.html
template. Is should also mention that I am running the dev version.


James Bennett wrote:
>> Carl Holm wrote:
>> It's probably obvious, but after searching the docs and beyond, I have
>> not been able to locate the origin of  "Site administration",
>> which appears in the title and as an h1 heading on the initial admin page.
>> 
>
> It's in this template:
> http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/base_site.html
>
>   

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Re: Django Admin - "Site administration"

2006-11-05 Thread James Bennett

> Carl Holm wrote:
> It's probably obvious, but after searching the docs and beyond, I have
> not been able to locate the origin of  "Site administration",
> which appears in the title and as an h1 heading on the initial admin page.

It's in this template:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/base_site.html

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Admin - "Site administration"

2006-11-05 Thread frank h.

hej carl,
check here
http://www.djangoproject.com/documentation/tutorial2/#customize-the-admin-look-and-feel
good luck
-frank

Carl Holm wrote:
> Hello,
>
> It's probably obvious, but after searching the docs and beyond, I have
> not been able to locate the origin of  "Site administration",
> which appears in the title and as an h1 heading on the initial admin page.
> 
> Thanks,
> 
> CL


--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---