GeoDjango GDAL 3.90 Windows

Hello, I’m trying to work with GeoDjango version 5.1 on Windows.When I try to run the command to create a migration, it shows:
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried “gdal308”, “gdal307”, “gdal306”, “gdal305”, “gdal304”, “gdal303”, “gdal302”, “gdal301”, “gdal300”). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

I installed OSGeo4W-setup.exe, but it installs the gdal309 version. I can’t install GDAL 308.

I am facing the same issue.
Have you found out any solution?

Give these steps a try; they worked for me.

  1. Install gdal in your pc.

  2. Cofigure gdal in the setting.py file by adding the .dll path

  3. In the installed apps, add ‘django.contrib.gis’