Really nobody ? It would really help me if someone could take a look at it...
Nicolas Steinmetz wrote: > > Hello, > > To use "Cab", I got a path issue and need to override get_absolute_url > defined by James (I would like to avoid to change the models by itself to > keep synchronized with its version). > > James set : > > def get_absolute_url(self): > return "/languages/%s/" % self.slug > > Issue is that for the language of the snippets, it points to > http://localhost:8000/languages/python/ instead of > http://localhost:8000/snippets/languages/python/ > > So James suggests me to use ABSOLUTE_URL_OVERRIDES to solve my issue. So I > read > <http://www.djangoproject.com/documentation/settings/#absolute-url-overrides> > but it lacks some explaination for my python level ;-) > > I added the following piece of "code" in settings.py (is it the right > place ?) but it does not work (it looks it's not take into account with > django svn 4643). > > ABSOLUTE_URL_OVERRIDES = { > 'cab.Language' : lambda o: "/snippets/languages/%s/" % o.slug, > } > > What did I miss ? > > Cheers, > Nicolas > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---