Import Error: No module named timezone

1,153 views
Skip to first unread message

PremAnand Lakshmanan

unread,
Jul 19, 2012, 5:42:54 PM7/19/12
to django-...@googlegroups.com
Hi all,
 
I installed tastypie and now trying to setup the sample project thats listed in the website-http://django-tastypie.readthedocs.org/en/latest/tutorial.html
 
When I setup and try to run it, I get the above error..Any inputs to resolve it would be of great help

--
THanks.

Bob Erb

unread,
Jul 19, 2012, 9:33:32 PM7/19/12
to django-...@googlegroups.com
Hi.

Which version of tastypie are you using? Looks like tastypie.utils.timezone got added 6 months ago

The online docs are for the latest version available via github. If you installed tastypie via pip, you probably got v0.9.11, which was committed last December, before tastypie.utils.timezone was added. Note that the sample project for v0.9.11 (http://django-tastypie.readthedocs.org/en/v0.9.11/tutorial.html) doesn't try to import timezone.

'Least that's what it looks like to me.

- Bob Erb
Reply all
Reply to author
Forward
0 new messages