On 23 déc, 06:33, John Fabiani <[email protected]> wrote:
(snip)
John, may I suggest that instead of trying whatever comes to mind and
wonder what happens, you spend some times learning Python, specially
the part about modules, import and the modules search path ? Your
problem - which has nothing to do with Django BTW - is obviously that
something in your PYTHONPATH shadows the stdlib modules. Launch an
interactive django / python shell ("./manage.py shell" command in your
terminal), then execute the following code:
import sys
print "\n".join(sys.path)
import datetime
print datetime
This should tell you where your modules are searched for by Python,
and where your datetime module is actually imported from.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.