Re: error while trying to work through chapter 3 of the django book name 'hours_ahead' is not defined

2008-04-07 Thread Ramiro Morales
On Mon, Apr 7, 2008 at 10:10 PM, Purcell <[EMAIL PROTECTED]> wrote: > > views.py-- > from django.http import HttpResponse > import datetime > > def current_datetime(request): > now = datetime.datetime.now() > html = "It is now %s." % > now > return HttpResponse(html) > > def hour

error while trying to work through chapter 3 of the django book name 'hours_ahead' is not defined

2008-04-07 Thread Purcell
I am sure this is an incredibly stupid error that is staring me in the face, but I do not know what it is. On the example where you make an hours_ahead view. I created the view in views.py and I added the pattern to urls.py, but when I try to go to a pages to test such as http://127.0.0.1:8000/tim