开发者

Using Django's admin interface to upload large file to GAE

I've been trying to find a way to upload a large file to GAE's datastore using Django's admin interface, but haven't found an answer that specifically addresses this issue. I'm fairly new to Python/Django, so there might be an angle that I'm not looking at.

I've been looking at the django-filetransfers solution, but I'm not sure how to integrate that into the admi开发者_Go百科n interface. Any suggestions would be great!


File uploads to the appengine are handled using the blobstore and not the datastore.

https://developers.google.com/appengine/docs/python/blobstore/overview#Complete_Sample_App

The datastore filesize limit is 1 megabyte. So, attempting to upload a large file into the appengine's non-relational database isn't going to work. This is by design.

The documentation I provided above shows you how to implement large file uploads.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜