mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Prevented (and corrected) single backtick usage in docs.
This commit is contained in:
parent
4a6f2b63d7
commit
1cdfe8d912
42 changed files with 105 additions and 88 deletions
|
@ -9,8 +9,8 @@ The :class:`GeoIP2` object is a wrapper for the `MaxMind geoip2 Python
|
|||
library`__. [#]_
|
||||
|
||||
In order to perform IP-based geolocation, the :class:`GeoIP2` object requires
|
||||
the `geoip2 Python library`__ and the GeoIP `Country` and/or `City` `datasets
|
||||
in binary format`__ (the CSV files will not work!). Grab the
|
||||
the `geoip2 Python library`__ and the GeoIP ``Country`` and/or ``City``
|
||||
`datasets in binary format`__ (the CSV files will not work!). Grab the
|
||||
``GeoLite2-Country.mmdb.gz`` and ``GeoLite2-City.mmdb.gz`` files and unzip them
|
||||
in a directory corresponding to the :setting:`GEOIP_PATH` setting.
|
||||
|
||||
|
|
|
@ -743,9 +743,9 @@ Distance lookups take the following form::
|
|||
The value passed into a distance lookup is a tuple; the first two
|
||||
values are mandatory, and are the geometry to calculate distances to,
|
||||
and a distance value (either a number in units of the field, a
|
||||
:class:`~django.contrib.gis.measure.Distance` object, or a `query expression
|
||||
<ref/models/expressions>`). To pass a band index to the lookup, use a 3-tuple
|
||||
where the second entry is the band index.
|
||||
:class:`~django.contrib.gis.measure.Distance` object, or a :doc:`query
|
||||
expression </ref/models/expressions>`). To pass a band index to the lookup, use
|
||||
a 3-tuple where the second entry is the band index.
|
||||
|
||||
On every distance lookup except :lookup:`dwithin`, an optional element,
|
||||
``'spheroid'``, may be included to use the more accurate spheroid distance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue