gpt4 book ai didi

google-app-engine - syncdb 的 django nonrel appengine 问题

转载 作者:太空宇宙 更新时间:2023-11-03 15:34:43 25 4
gpt4 key购买 nike

我是 django 的新手,还有很多事情要搞清楚。

当我运行 manage.py 的 syncdb 命令时,在完成一些步骤后,我得到这个:

AttributeError: "'NoneType' 对象没有属性 'mkstemp'"> 已忽略

我该如何解决这个问题?是否有解决此问题的 django nonrel 版本?

最佳答案

“gagan”贴出了原因及解决方法right here .

I changed my settings.py little bit to resolve this. I added following to settings.py,

DATABASES['native'] = { 
'ENGINE': 'djangoappengine.db',
'HIGH_REPLICATION': True,
'DEV_APPSERVER_OPTIONS': {
'high_replication' : True,
'use_sqlite': True,
}
}

and removed this line,

DATABASES['native'] = DATABASES['default'] 

关于google-app-engine - syncdb 的 django nonrel appengine 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7429220/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com