ah, got it. thanks malcolm !

just to think it out further :

now I understand that

(r'^something/(?P<slug>[-\w]+)/', include('some.where.urls')),

would pass the captured param to to all the urls in the included
urls.py

I think I was copying from this:
# Uncomment the next line for to enable the admin:
    (r'^admin/(.*)', admin.site.root),

and in that case the rest of the url is passed into the AdminSite.root
function :

    def root(self, request, url):


I've had the most hold-ups so far due to configuring the urls.
named urls has helped significantly.



On Sep 8, 7:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-09-07 at 06:18 -0700, felix wrote:
> > This should be dirt simple, but isn't working:
>
> > main urls.py :
> >  (r'^comments/(.*)', include('django.contrib.comments.urls')),
>
> This pattern says you want to *capture* anything after the "comments/"
> piece. So calling reverse with no parameters won't match this (you must
> pass the correct parameters for the capturing groups). Maybe you don't
> really want to capture that, in which case you could write either
>
>         ^comments/.*
>
> or
>
>         ^comments/(?:.*)
>
> The former would be obviously shorter.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
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