开发者

Django nonrel on Google Appengine 3000 file limit

I followed the directions on http://www.allbuttonspressed.com/projects/djangoappengine, but afterwards realized that the resulting proje开发者_如何学Goct has almost 5,000 files, namely because of the django directory.

Am I not supposed to include django 1.3 and just use django 1.2 builtin with Google App Engine? Or am I missing something? I've heard that zipimport is not a good idea with django.


There are not a lot of solutions:

  • You can try to remove every lib unnecessary in the directory of Django
  • Use zipimport if you don't want use django 1.2 provides with
  • GAE. Reduce the number of files you use in your project.

But note that: For yours instances, load a lot of files is slower because there are a lot of reads in the file system. django.zip is reads only one time and stocked in the memory to unzip it. there is just one read on the file system not 3000 and more...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜