我正在尝试让Django Shell与Google App Engine一起工作。不幸的是,我得到了以下错误:
AttributeError: type object 'RegistrationTestModel' has no attribute '_deferred'有谁知道怎么解决这个问题吗?
堆栈跟踪:
WARNING:root:Could not read datastore data from /var/folders/X0/X0QgAfs7Hd8IcCVZOIkiCE+++TI/-Tmp-/django_content-sharer.datastore
WARNING:root:Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Traceback (most recent call last):
File "manage.py", line 30, in <module>
execute_manager(settings)
File "/Users/chris/Documents/workspace/ContentSharer/src/__init__.py", line 362, in execute_manager
File "/Users/chris/Documents/workspace/ContentSharer/src/__init__.py", line 303, in execute
File "/Users/chris/Documents/workspace/ContentSharer2/src/django/core/management/base.py", line 195, in run_from_argv
File "/Users/chris/Documents/workspace/ContentSharer2/src/django/core/management/base.py", line 222, in execute
File "/Users/chris/Documents/workspace/ContentSharer2/src/django/core/management/base.py", line 351, in handle
File "/Users/chris/Documents/workspace/ContentSharer/src/django/core/management/commands/shell.py", line 18, in handle_noargs
loaded_models = get_models()
File "/Users/chris/Documents/workspace/ContentSharer2/src/django/db/models/loading.py", line 166, in get_models
AttributeError: type object 'RegistrationTestModel' has no attribute '_deferred'发布于 2010-06-12 21:20:25
看起来您正在尝试加载依赖于Django模型的Django的一部分。Django模型不能在App Engine上工作,因为它们依赖于关系数据库。
请尝试使用django-nonrel。
https://stackoverflow.com/questions/3027436
复制相似问题