I continue to be frustrated with examples given in this book, which simply do not work. I am trying to follow the code examples in the book.
In chapter 4, the book gives this code example: from django.shortcuts import render_to_response import datetime def current_datetime(request): now = datetime.datetime.now() return render_to_response('current_datetime.html',{'current_date': now}) This is supposed to replcae the old current_datetime routine. But it doesn't work. Instead I get this error: cannot import name hours_ahead Although there are no instructions to do so, I commented out the reference to hours_ahead in the urls.py. and removed the hours_ahead function from views.py. But it still doesn't work. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---