On 4/4/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
>
> James Bennett schrieb:
> > Then why did the original email say that it would "tie the urls to the
> > field names in the model"?
>
> Let's suppose you have an url config like this (current syntax, urls.py):
>
>
> urlpatterns = patterns('mailadmin.views',
>      (r'^(?P<id>[1-9]\d*), 'edit_foobar')),
>      # ...
> )
>
>
>
> Then you'd have to match the 'id' group to the id field of whatever
> you're going to edit. So, if you later change to rename this field, you
> have to change url configuration, which is not nice.
>
> Michael
>

I think this case is not very well. Because id will be a parameter,
it'll not be an apps url prefix commonly.

--
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

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

Reply via email to