1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #32230 -- Fixed DataSource example in GeoDjango tutorial.

DataSource.ds_input doesn't support pathlib.Path().

Regression in 26554cf5d1.
This commit is contained in:
Neil Lyons 2020-11-27 05:57:20 +00:00 committed by GitHub
parent 33403bf80f
commit e46ca51c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(world_shp)
>>> ds = DataSource(str(world_shp))
>>> print(ds)
/ ... /geodjango/world/data/TM_WORLD_BORDERS-0.3.shp (ESRI Shapefile)