Thursday, April 26, 2012

Error: 'module' object is not callable

Actually I am using datetime object for comparing two date inputs.

if datetime(fromdtpart[2],fromdtpart[1],fromdtpart[0]) <
datetime(todtpart[2], todtpart[1], todtpart[0]):

while execute the above line, I got the " 'module' object is not
callable " error.


Anybody can explain why this error occur..

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

No comments:

Post a Comment