ImportError, using pytz in google app engine

后端 未结 2 1947
难免孤独
难免孤独 2020-12-21 23:18

I\'m trying to use pytz in my web app to apply a timezone to a datetime object. First I tried importing pytz like this

from pytz import timezone
         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-21 23:42

    I use gae-pytz and it works great. Looks like you might have a path problem. Is the pytz dir in the root of your app engine project? That is where it should be.

提交回复
热议问题