The example works as the book describes
http://www.djangobook.com/en/1.0/chapter03/

 When, in views.py I insert the "datetime.datetime.now()" statement and
> "import current_datetime" into my urls.py file, I get the following error
> message when I try to call up the webpage via runserver.  It seems like my
> pure python script is not being picked up by the server:
>
> "ImportError cannot import name current_datetime".
>
>
>
Do it exactly as it says in the book:

from mysite.views import current_datetime

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to