it looks like you have mismatched parens, and no trailing slash, which will matter if APPEND_SLASH = True. the regex should look like:
r'^find/(?P<url>[-\w]+)/$' should be urls.py too, not views.py. keith On Mon, Oct 6, 2008 at 1:17 PM, Merrick <[EMAIL PROTECTED]> wrote: > > I am trying to figure out how to match / capture a URL. > > views.py > ======= > urlpatterns = patterns('', > url(r'^find/(?P<url>(.*)$', > view = 'myapp.views.find', > name = 'find' > ), > > when I enter in this address: > > mydomain.com/find/www.wired.com > > my view / template are executed, but if I do this: > > mydomain.com/find/http%3A%2F%2Fwww.wired.com%2F > > I get: > > Not Found > > The requested URL /find/http://www.wired.com/ was not found on this > server. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---