Fixed some typos in the documentation.
Thanks to Rodolfo Carvalho and Piotr Kasprzyk for the patch.
This commit is contained in:
parent
a08f906556
commit
ea4da8e63c
|
@ -72,4 +72,4 @@ Glossary
|
||||||
See :doc:`/topics/templates`.
|
See :doc:`/topics/templates`.
|
||||||
|
|
||||||
view
|
view
|
||||||
A function responsible for rending a page.
|
A function responsible for rendering a page.
|
||||||
|
|
|
@ -362,7 +362,7 @@ With that ready, we can ask the client to do some work for us::
|
||||||
>>> response.status_code
|
>>> response.status_code
|
||||||
404
|
404
|
||||||
>>> # on the other hand we should expect to find something at '/polls/'
|
>>> # on the other hand we should expect to find something at '/polls/'
|
||||||
>>> # we'll use 'reverse()' rather than a harcoded URL
|
>>> # we'll use 'reverse()' rather than a hardcoded URL
|
||||||
>>> from django.core.urlresolvers import reverse
|
>>> from django.core.urlresolvers import reverse
|
||||||
>>> response = client.get(reverse('polls:index'))
|
>>> response = client.get(reverse('polls:index'))
|
||||||
>>> response.status_code
|
>>> response.status_code
|
||||||
|
|
|
@ -185,7 +185,7 @@ code snippet shows how you can implement this check::
|
||||||
self.min > self.max):
|
self.min > self.max):
|
||||||
return [
|
return [
|
||||||
checks.Error(
|
checks.Error(
|
||||||
'min greated than max.',
|
'min greater than max.',
|
||||||
hint='Decrease min or increase max.',
|
hint='Decrease min or increase max.',
|
||||||
obj=self,
|
obj=self,
|
||||||
id='myapp.E001',
|
id='myapp.E001',
|
||||||
|
|
|
@ -319,7 +319,7 @@ The ``urls.py`` file would contain something like::
|
||||||
|
|
||||||
.. versionchanged:: 1.6
|
.. versionchanged:: 1.6
|
||||||
|
|
||||||
The ``condiction_dict`` can be passed as attribute for the ``as_view()`
|
The ``condition_dict`` can be passed as attribute for the ``as_view()`
|
||||||
method or as a class attribute named ``condition_dict``::
|
method or as a class attribute named ``condition_dict``::
|
||||||
|
|
||||||
class OrderWizard(WizardView):
|
class OrderWizard(WizardView):
|
||||||
|
|
|
@ -19,7 +19,7 @@ ogrinspect <data_source> <model_name>
|
||||||
|
|
||||||
.. django-admin:: ogrinspect
|
.. django-admin:: ogrinspect
|
||||||
|
|
||||||
The ``ogrinpsect`` management command will inspect the given OGR-compatible
|
The ``ogrinspect`` management command will inspect the given OGR-compatible
|
||||||
:class:`~django.contrib.gis.gdal.DataSource` (e.g., a shapefile) and will
|
:class:`~django.contrib.gis.gdal.DataSource` (e.g., a shapefile) and will
|
||||||
output a GeoDjango model with the given model name. There's a detailed example
|
output a GeoDjango model with the given model name. There's a detailed example
|
||||||
of using ``ogrinspect`` :ref:`in the tutorial <ogrinspect-intro>`.
|
of using ``ogrinspect`` :ref:`in the tutorial <ogrinspect-intro>`.
|
||||||
|
|
|
@ -1102,7 +1102,7 @@ Aggregate Methods
|
||||||
*Availability*: PostGIS
|
*Availability*: PostGIS
|
||||||
|
|
||||||
Returns a ``GEOMETRYCOLLECTION`` or a ``MULTI`` geometry object from the geometry
|
Returns a ``GEOMETRYCOLLECTION`` or a ``MULTI`` geometry object from the geometry
|
||||||
column. This is analogous to a simplified version of the :meth:`GeoQuerySet.unionagg` method,
|
column. This is analogous to a simplified version of the :meth:`GeoQuerySet.unionagg` method,
|
||||||
except it can be several orders of magnitude faster than performing a union because
|
except it can be several orders of magnitude faster than performing a union because
|
||||||
it simply rolls up geometries into a collection or multi object, not caring about
|
it simply rolls up geometries into a collection or multi object, not caring about
|
||||||
dissolving boundaries.
|
dissolving boundaries.
|
||||||
|
|
|
@ -5,7 +5,7 @@ Measurement Objects
|
||||||
===================
|
===================
|
||||||
|
|
||||||
.. module:: django.contrib.gis.measure
|
.. module:: django.contrib.gis.measure
|
||||||
:synopsis: GeoDjango's distance and area measurment objects.
|
:synopsis: GeoDjango's distance and area measurement objects.
|
||||||
|
|
||||||
The :mod:`django.contrib.gis.measure` module contains objects that allow
|
The :mod:`django.contrib.gis.measure` module contains objects that allow
|
||||||
for convenient representation of distance and area units of measure. [#]_
|
for convenient representation of distance and area units of measure. [#]_
|
||||||
|
|
|
@ -131,7 +131,7 @@ Settings
|
||||||
Only relevant when using a SpatiaLite version 2.3.
|
Only relevant when using a SpatiaLite version 2.3.
|
||||||
|
|
||||||
By default, the GeoDjango test runner looks for the :ref:`file containing the
|
By default, the GeoDjango test runner looks for the :ref:`file containing the
|
||||||
SpatiaLite dababase-initialization SQL code <create_spatialite_db>` in the
|
SpatiaLite database-initialization SQL code <create_spatialite_db>` in the
|
||||||
same directory where it was invoked (by default the same directory where
|
same directory where it was invoked (by default the same directory where
|
||||||
``manage.py`` is located). To use a different location, add the following to
|
``manage.py`` is located). To use a different location, add the following to
|
||||||
your settings::
|
your settings::
|
||||||
|
|
|
@ -221,7 +221,7 @@ SeparateDatabaseAndState
|
||||||
|
|
||||||
SeparateDatabaseAndState(database_operations=None, state_operations=None)
|
SeparateDatabaseAndState(database_operations=None, state_operations=None)
|
||||||
|
|
||||||
A highly specialist operation that let you mix and match the database
|
A highly specialized operation that let you mix and match the database
|
||||||
(schema-changing) and state (autodetector-powering) aspects of operations.
|
(schema-changing) and state (autodetector-powering) aspects of operations.
|
||||||
|
|
||||||
It accepts two list of operations, and when asked to apply state will use the
|
It accepts two list of operations, and when asked to apply state will use the
|
||||||
|
|
|
@ -5,7 +5,7 @@ Customizing authentication in Django
|
||||||
The authentication that comes with Django is good enough for most common cases,
|
The authentication that comes with Django is good enough for most common cases,
|
||||||
but you may have needs not met by the out-of-the-box defaults. To customize
|
but you may have needs not met by the out-of-the-box defaults. To customize
|
||||||
authentication to your projects needs involves understanding what points of the
|
authentication to your projects needs involves understanding what points of the
|
||||||
provided system are extendible or replaceable. This document provides details
|
provided system are extensible or replaceable. This document provides details
|
||||||
about how the auth system can be customized.
|
about how the auth system can be customized.
|
||||||
|
|
||||||
:ref:`Authentication backends <authentication-backends>` provide an extensible
|
:ref:`Authentication backends <authentication-backends>` provide an extensible
|
||||||
|
|
Loading…
Reference in New Issue