I've just started learning django using "The Definitive Guide to
django" second edition.

Going by the initial  example in Chapter 3 I get this.

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in mysite.urls, Django tried these URL
patterns, in this order:
^hello/$
The current URL, , didn't match any of these.

but here is the urls.py file exactly as in the book. p.23

from django.conf.urls.defaults import *
from mysite.views import hello

urlpatterns = patterns('',
   ('^hello/$', hello)
)


For completion the views.py is

from django.http import HttpResponse

def hello(request):
        return HttpResponse("Hello world")

The directoy is:
/Users/donfox1/Projects/Python/Django/mysite

and everything looks normal ther!

There is something wrong with the regular expression!?  ('^hello/$',
hello)

Thanks in advance for any assistance! I'm a newby to the worls of
Python/Django.

Don

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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