我在gae python proyect中使用python + django。
我使用Picasa Python API中的工作,但在我的电脑上我没有问题gdata.photos.service,但是当我在GAE服务器推的项目,我有此错误:在gae服务器中导入gdata.photos.service时出错
ViewDoesNotExist at/
Tried main in module trazovillena.main.views. Error was: 'module' object has no attribute 'v1_deprecated'
如果我评论此行:
import gdata.photos.service
所有工作都很好,买我不能使用谷歌Picasa API。我在互联网搜索问题,人们说init .py但是我在项目/ gdata/photos中都很好,它可以在其他机器上工作,但不适用于应用程序引擎。
你可以看到在回溯:http://trazovillena.appspot.com/
Traceback (innermost last) Switch to copy-and-paste view /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/base.py in get_response callback, callback_args, callback_kwargs = resolver.resolve(request.path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve sub_match = pattern.resolve(new_path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve return self.callback, args, kwargs ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in _get_callback raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) ... ▶ Local vars
误差之间唯一的区别或没有错误是包括谷歌http://code.google.com/p/gdata-python-client/的GDATA的Python-cliente API:
import gdata.photos.service
一些想法?
很多thx。对不起,我英文很差。
请包括整个堆栈跟踪和所有相关代码。 –
我不知道你需要什么代码,唯一的区别是导入库。也许我需要在settings.py中包含somo配置,例如在INSTALLED_APPS中,但我没有找到关于它的信息。 Thx !!!! – fermin
包括trazovillena.main.views文件以及如果你可以 –