On Sat, May 3, 2008 at 8:28 AM, Thierry <[EMAIL PROTECTED]>
wrote:

>
> ABSOLUTE_URL_OVERRIDES = {
>    'django.contrib.auth.models.user': lambda o: "/members/%s/" %
> o.username,
> }
>
> Doesn't seem to be working, any idea why?
>

Doc (
http://www.djangoproject.com/documentation/settings/#absolute-url-overrides)
says this is a mapping of ''"app_label.model_name" strings'.  App_label, I
believe, is only the rightmost part of the Python path to the application
(in this case django.contrib.auth, so for rightmost part, just 'auth'). So
I'd try:

ABSOLUTE_URL_OVERRIDES = {
   'auth.user': lambda o: "/members/%s/" % o.username,
}

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

Reply via email to