1👍
What version of Django are you using? I suspect it’s quite old.
The list of supported versions of GDAL for Django 2.1 matches the list in your error message:
- 2.2
- 2.1
- 2.0
- 1.11
- 1.10
- 1.9
You’ll have to upgrade to at least Django 3.0 to get support for GDAL 2.4, but even that version is well beyond its extended support period, which ended April 6, 2021.
I suggest you upgrade to at least Django 3.2, the oldest actively supported version. It’s an LTS release and should continue to receive support until April, 2024.
Source:stackexchange.com