增加django heroku gunicorn中上载的文件大小限制

增加django heroku gunicorn中上载的文件大小限制,django,heroku,gunicorn,Django,Heroku,Gunicorn,当我尝试使用ajax/jquery上传超过1mb的文件时。虽然在本地主机上一切正常,但服务器仍在抛出错误。我正在使用heroku托管应用程序,并且procfile被编写为使用gunicorn作为http服务器。如何配置服务器以接受每个大小的文件 Procfile web: gunicorn gettingstarted.wsgi --log-file - 我也面临同样的问题。我正在尝试以下配置:gunicorn app.wsgi--超时300--限制请求行8190--限制请求字段200--限制

当我尝试使用ajax/jquery上传超过1mb的文件时。虽然在本地主机上一切正常,但服务器仍在抛出错误。我正在使用heroku托管应用程序,并且procfile被编写为使用gunicorn作为http服务器。如何配置服务器以接受每个大小的文件

Procfile
web: gunicorn gettingstarted.wsgi --log-file -

我也面临同样的问题。我正在尝试以下配置:gunicorn app.wsgi--超时300--限制请求行8190--限制请求字段200--限制请求字段大小8190--保持活动5--日志文件--这可能会有所帮助: