Django 1.2.4开发服务器返回的代码247是什么? [英] What is code 247 returned by Django 1.2.4 development server?

查看:55
本文介绍了Django 1.2.4开发服务器返回的代码247是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就此而言,是否记录了错误代码集?我收到上载较大文件的代码247,因此我认为这是内存问题,但是找不到任何文档.

And for that matter, is the set of error codes documented? I get code 247 uploading a large file so I think it's a memory issue but can't find any documentation.

推荐答案

您可能想要设置FILE_UPLOAD_MAX_MEMORY_SIZE,这将迫使大于该大小的文件流式传输到磁盘,而不是允许其连续消耗RAM.我通常将其设置为102400,即100k.

You might want to set FILE_UPLOAD_MAX_MEMORY_SIZE, which will force files larger than that size to be streamed to disk, rather than allowed to continuously consume RAM. I typically set this to 102400, which is 100k.

希望有帮助!

这篇关于Django 1.2.4开发服务器返回的代码247是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆