I was getting the somewhat same error because my Django version was 5.1 and MariaDb 10.4 (older than required).
raise NotSupportedError( django.db.utils.NotSupportedError: MariaDB 10.5 or later is required (found 10.4.32).
To connect Django to MySql database using xampp server, there should be compatibility between the version of Django and MariaDB.
Django version 4.2 and higher supports for MariaDB 10.4 and above.
Django version 5.1 and higher support for MariaDB 10.5 and above.
To fix this without changing MariaDB version follow the steps:
1.Check Django version
python -m django --version
2.Change the version according to version of MariaDB
pip uninstall django
pip install Django version==4.2 (in my case version would be 4.2)
This should solve the issue, without changing the xampp version.