With trunk, I dealt with this by changing admin/base_site.html
Just overide the userlinks block

I found the relative links annoyingly limiting so I changed them to
absolutes (I mean absolute according to the base directory - I didn't
have any server info in them) by way of a decorator & the settings
file.

in templates/admin/base_site.html:
{% block userlinks %}
<span class="hl-info">
<a href="{% baseurl %}/password_change/">{% trans 'Change password'
%}</a> / <a href="{% baseurl %}/logout/">{% trans 'Log out' %}</a>
</span>
{% endblock %}

In my models/__init__.py file (note that this is not python 2.3
friendly):
@defaulttags.register.simple_tag
def baseurl():
    if hasattr(settings, 'BASE_URL_PREFIX'):
        return '/' + settings.BASE_URL_PREFIX
    return ''

In my settings.py file:
# web server prefix
BASE_URL_PREFIX = 'blogs'

hth,
-rob


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to