-
Hi all, Can someone please help me resolve this issue? ERROR:django.security.RequestDataTooBig:Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE From my tethys app, I am sending json to a request and it does not work because of it's size. The size of json input varies according to different criteria. Please let me know if you have questions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Take a look at the documentation for the Django DATA_UPLOAD_MAX_MEMORY_SIZE setting: https://docs.djangoproject.com/en/2.2/ref/settings/#data-upload-max-memory-size The documentation for the FILE_UPLOAD_MAX_MEMORY_SIZE may be helpful as well: https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-FILE_UPLOAD_MAX_MEMORY_SIZE You set these settings in your portal_config.yml file in the settings section: settings:
DATA_UPLOAD_MAX_MEMORY_SIZE: 123456789 You can check the setting using the tethys settings --get DATA_UPLOAD_MAX_MEMORY_SIZE or if you want to see a list of all settings: tethys settings --get Here is the documentation on the settings command for reference: http://docs.tethysplatform.org/en/stable/tethys_cli/settings.html |
Beta Was this translation helpful? Give feedback.
-
I have tried this in portal_config.yml file inside .tethys folder. tethys settings --get DATA_UPLOAD_MAX_MEMORY_SIZE This command does not reflect it |
Beta Was this translation helpful? Give feedback.
I have tried this in portal_config.yml file inside .tethys folder.
tethys settings --get DATA_UPLOAD_MAX_MEMORY_SIZE
This command does not reflect it