Re: name 'current_datetime' is not defined

2007-02-03 Thread Mike Spradling
I figured it out, I left off from mysite.views import current_datetime On Feb 3, 8:50 am, "gordyt" <[EMAIL PROTECTED]> wrote: > Howdy Mike, > > > def current_datetime(request): > > now = datetime.datetime.now() > > html = "It is now %s." % now > > return HttpResponse

name 'current_datetime' is not defined

2007-02-03 Thread Mike Spradling
I'm baffled. I'm just getting started with django and am reading the 'Django Book'. In chapter 3 I'm told, - Make a file called views.py that contains: from django.http import HttpResponse import datetime def current_datetime(request): now = datetime.datetime.now() html = "It