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
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
2 matches
Mail list logo