On Tue, Jul 22, 2008 at 2:29 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 22, 2008 at 4:40 AM, arsyed <[EMAIL PROTECTED]> wrote: >> urlpatterns = patterns('', >> (r'^/foo$', foo), >> ) >> >> ------error message >> >> GET http://localhost/mysite/foo results in: >> >> Using the URLconf defined in proj.urls, Django tried these URL >> patterns, in this order: >> >> 1. ^/foo$ >> >> The current URL, mysite/foo, didn't match any of these. > > For what it's worth, you're probably running into something a lot > simpler than the site prefix thing. Django's URLs are matched > *without* the leading slash, so your URL pattern should look like this > instead: > > urlpatterns = patterns('', > (r'^foo$', foo), > ) > > Hopefully that should clear it up for you. > > -Gul >
Ack. You're right - I forgot to remove the leading slash along with the mysite prefix. Thanks for the help! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---