unicef / iogt

BSD 2-Clause "Simplified" License
25 stars 34 forks source link

Error uploading SVG files #1700

Open istride opened 2 months ago

istride commented 2 months ago

It is not possible to upload new SVG files. Error message is:

AttributeError: 'Settings' object has no attribute 'WAGTAILSVG_UPLOAD_FOLDER'

This would have been occurring since the upgrade to Wagtail 3, when wagtailsvg was also upgraded. The setting mentioned above is not set in the IoGT app, which causes the error. The default value should be "media", but the error prevents it from being set. Therefore, we should just set WAGTAILSVG_UPLOAD_FOLDER to the value "media", in the app.