1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #32230 -- Made DataSource support pathlib.Path.

This commit is contained in:
Hasan Ramezani
2020-11-27 18:58:28 +01:00
committed by Mariusz Felisiak
parent 3828879eee
commit b37be072a2
5 changed files with 16 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ Now, open the world borders shapefile using GeoDjango's
:class:`~django.contrib.gis.gdal.DataSource` interface::
>>> from django.contrib.gis.gdal import DataSource
>>> ds = DataSource(str(world_shp))
>>> ds = DataSource(world_shp)
>>> print(ds)
/ ... /geodjango/world/data/TM_WORLD_BORDERS-0.3.shp (ESRI Shapefile)