Is it possible to do it all in urls.py? I don't know much about Python, yet, but could you have two way look-up. urls.py has the URL- >View handled. Could you stick in a dictionary based on classes (and PKs, maybe) that would return the appropriate URL?
Todd On Mar 29, 2006, at 10:38 AM, Adrian Holovaty wrote: > > On 3/29/06, James Bennett <[EMAIL PROTECTED]> wrote: >> On 3/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> And now you're encoding URLs (which are, in my mind, definitely >>> presentation-related) in the models? >> >> It's not something new; it's been this way since the first public >> release of Django. Adrian and others have said elsewhere that it's >> not >> nice and they'd love to see a better way to handle this, but no-one's >> yet come up with one that works. > > Yeah, precisely. Elegant solutions are quite welcome! > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---