django部署settings.py中的更改

时间:2020-01-31 10:59:23

标签: django django-forms apache2 mod-wsgi

我在Django设置方面有一个小问题。

在我的页面中,我输入了很多内容,但出现错误:

The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.

向我介绍了3秒的google来找到解决方案

DATA_UPLOAD_MAX_NUMBER_FIELDS = None # None so it ignores the error -> change to big number results in the same error

在我当地的发展中,它就像一种魅力。在服务器上,我做了同样的事情,然后:

service apache2 restart

但我仍然会收到错误消息。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我发现了一个灵魂。 由于某种原因,我不知道apache2没有加载整个settings.py。 我只是重新上传了整个应用程序,然后重启了apache2。 也许路途很差或什么。

相关问题