On Nov 1, 7:26 am, gizmo <[EMAIL PROTECTED]> wrote:
> Hello,
> I started learning about Django and I followed an example 
> athttp://www.djangobook.com/en/beta/chapter03/
>
> I've done:
> from django.conf.urls.defaults import *
> from gizmo_site.datetime import current_datetime

This suggests that you have a Django app called 'datetime'. I would
recommend renaming it as Python has a built-in 'datetime' module. It
may be possible for the two to co-exist, but the error you are seeing
(django.contrib.auth: 'module' object has no attribute 'timedelta') is
because Django is looking for the Python built-in datetime module's
timedelta function and it encounters your module of that name instead
which has no timedelta function (and even if it did, it would be the
wrong one.)

Jakub already explained why your URL match is failing.

Hope the above helps too.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to