Add read DEFAULT_MAX_UPLOAD_SIZE from environment#14143
Add read DEFAULT_MAX_UPLOAD_SIZE from environment#14143EHJ-52n wants to merge 1 commit intoGeoNode:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request modifies geonode/settings.py to allow the DEFAULT_MAX_UPLOAD_SIZE to be configured via an environment variable. Feedback was provided to improve the readability of the default value using a calculation and to enhance robustness when handling empty environment variables.
|
Yes, but why? Should we state this fact somewhere? In the |
The unusual behaviour is due to the fact that the upload limits are stored in the DB to allow their management from the Django Admin. Allowing a dynamic configuration from the environment could potentially lead to conflicting settings. https://docs.geonode.org/en/5.0.x/admin/upload-size-limits/index.html I agree that this should be clarified, either in the code or the docs, or both. |
94ca636 to
0e26b31
Compare
|
It is already documented in the help topic „Upload Size Limits“, which is not anchored in the TOC and in the environment variables topic below GeoNode Settings → Settings, which is anchored in the TOC. I added some comments to the Do you want me to add the same content to the |
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.