I'm just curious if named URL patterns will be able to use the prefix
given (or if there's any reason not to) ie,

urlpatterns += patterns('my_pattern',
                                  url(r'^(?P<id>[\d]+)/$', 'details',
name="my-details"),....

Right now, I have to pass into url the following:

urlpatterns += patterns('my_pattern_is_useless_right_here',
                                  url(r'^(?P<id>[\d]+)/$',
'my_pattern.details', name="my-details"),....

because of the code in django.conf.urls.defaults.py.  I just picked up
python a few weeks ago (so I'm no expert by any means) but it seems as
though the code just checks to see if it's a list or tuple, then
applies prefix to the url created, but if it's just a url, then it
appends it right along.  I haven't stared at python enough to figure
out how to inject prefix into a url passed in as such, but I figure it
wouldn't be that big a deal. :)


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