Hello,

When I am running the simple current_datetime example from the django
book, and then edit my urls.py to look like the one in the book, the
page doesn't server.

Book urls.py:
      from django.conf.urls.defaults import *
f     from mysite.views import current_datetime

      urlpatterns = patterns('',
          (r'^now/$', current_datetime),
      )

Error:
Using the URLconf defined in mysite.urls, Django tried these URL
patterns, in this order:
   1. ^now/$
The current URL, /mysite/now/, didn't match any of these.

When I remove the '^' from the front of the regex pattern and add a
'/', suddenly the page works! Why could the '^' be killing the regex
match?

Thanks,
Ben


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