开发者

django nonrel appengine problem with syncdb

I'm new to django, and still figuring out a lot of things.

When I run the syncdb command of manage.py, after some of the steps have been completed, I get this:

AttributeError: "'NoneType' object has no attr开发者_如何学JAVAibute 'mkstemp'" in > ignored

how do I solve this? Is there a version of django nonrel that solves this?


"gagan" posted the reason and solution 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'] 


I think it should be the allbuttonspressed version. I tried it in march and the exmples from waldemar worked (but I chose plain gae for my project).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜