diff --git a/django/contrib/admin/actions.py b/django/contrib/admin/actions.py index 4445dd52fd..c4cccfd990 100644 --- a/django/contrib/admin/actions.py +++ b/django/contrib/admin/actions.py @@ -16,7 +16,7 @@ def delete_selected(modeladmin, request, queryset): """ Default action which deletes the selected objects. - This action first displays a confirmation page whichs shows all the + This action first displays a confirmation page which shows all the deleteable objects, or, if the user has no permission one of the related childs (foreignkeys), a "permission denied" message. diff --git a/django/contrib/auth/context_processors.py b/django/contrib/auth/context_processors.py index 474002e550..ce1e42d574 100644 --- a/django/contrib/auth/context_processors.py +++ b/django/contrib/auth/context_processors.py @@ -13,7 +13,7 @@ class PermLookupDict(object): return self.user.has_perm("%s.%s" % (self.app_label, perm_name)) def __iter__(self): - # To fix 'item in perms.someapp' and __getitem__ iteraction we need to + # To fix 'item in perms.someapp' and __getitem__ interaction we need to # define __iter__. See #18979 for details. raise TypeError("PermLookupDict is not iterable.") diff --git a/django/contrib/gis/db/backends/postgis/models.py b/django/contrib/gis/db/backends/postgis/models.py index 83b254cb39..68d4c188d6 100644 --- a/django/contrib/gis/db/backends/postgis/models.py +++ b/django/contrib/gis/db/backends/postgis/models.py @@ -51,7 +51,7 @@ class PostGISGeometryColumns(models.Model): class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin): """ The 'spatial_ref_sys' table from PostGIS. See the PostGIS - documentaiton at Ch. 4.2.1. + documentation at Ch. 4.2.1. """ srid = models.IntegerField(primary_key=True) auth_name = models.CharField(max_length=256) diff --git a/django/contrib/gis/db/models/query.py b/django/contrib/gis/db/models/query.py index 7a2696ad75..65d7fb4503 100644 --- a/django/contrib/gis/db/models/query.py +++ b/django/contrib/gis/db/models/query.py @@ -406,7 +406,7 @@ class GeoQuerySet(QuerySet): SQL function to call. settings: - Dictonary of internal settings to customize for the spatial procedure. + Dictionary of internal settings to customize for the spatial procedure. Public Keyword Arguments: diff --git a/django/contrib/gis/gdal/geomtype.py b/django/contrib/gis/gdal/geomtype.py index c1e1934886..4ba2b153de 100644 --- a/django/contrib/gis/gdal/geomtype.py +++ b/django/contrib/gis/gdal/geomtype.py @@ -3,7 +3,7 @@ from django.utils import six class OGRGeomType(object): - "Encapulates OGR Geometry Types." + "Encapsulates OGR Geometry Types." wkb25bit = -2147483648 diff --git a/django/contrib/gis/geos/prototypes/geom.py b/django/contrib/gis/geos/prototypes/geom.py index dec3a0d203..e4bd0b0a51 100644 --- a/django/contrib/gis/geos/prototypes/geom.py +++ b/django/contrib/gis/geos/prototypes/geom.py @@ -78,7 +78,7 @@ to_hex = BinOutput('GEOSGeomToHEX_buf') to_wkb = BinOutput('GEOSGeomToWKB_buf') to_wkt = StringFromGeom('GEOSGeomToWKT') -# The GEOS geometry type, typeid, num_coordites and number of geometries +# The GEOS geometry type, typeid, num_coordinates and number of geometries geos_normalize = IntFromGeom('GEOSNormalize') geos_type = StringFromGeom('GEOSGeomType') geos_typeid = IntFromGeom('GEOSGeomTypeId') diff --git a/django/contrib/gis/geos/prototypes/prepared.py b/django/contrib/gis/geos/prototypes/prepared.py index d4a17a9aeb..69715c0f99 100644 --- a/django/contrib/gis/geos/prototypes/prepared.py +++ b/django/contrib/gis/geos/prototypes/prepared.py @@ -7,7 +7,7 @@ from django.contrib.gis.geos.prototypes.errcheck import check_predicate # Prepared geometry constructor and destructors. geos_prepare = GEOSFuncFactory('GEOSPrepare', argtypes=[GEOM_PTR], restype=PREPGEOM_PTR) -prepared_destroy = GEOSFuncFactory('GEOSPreparedGeom_destroy', argtpes=[PREPGEOM_PTR]) +prepared_destroy = GEOSFuncFactory('GEOSPreparedGeom_destroy', argtypes=[PREPGEOM_PTR]) # Prepared geometry binary predicate support. diff --git a/django/contrib/gis/sitemaps/kml.py b/django/contrib/gis/sitemaps/kml.py index 4dcaa8f595..83e1edcb61 100644 --- a/django/contrib/gis/sitemaps/kml.py +++ b/django/contrib/gis/sitemaps/kml.py @@ -44,7 +44,7 @@ class KMLSitemap(Sitemap): def get_urls(self, page=1, site=None, protocol=None): """ - This method is overrridden so the appropriate `geo_format` attribute + This method is overridden so the appropriate `geo_format` attribute is placed on each URL element. """ urls = Sitemap.get_urls(self, page=page, site=site, protocol=protocol) diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py index 7f55f5d022..7c26abba92 100644 --- a/django/core/management/commands/inspectdb.py +++ b/django/core/management/commands/inspectdb.py @@ -40,7 +40,7 @@ class Command(BaseCommand): yield "# You'll have to do the following manually to clean this up:" yield "# * Rearrange models' order" yield "# * Make sure each model has one field with primary_key=True" - yield "# * Make sure each ForeignKey has `on_delete` set to the desidered behavior." + yield "# * Make sure each ForeignKey has `on_delete` set to the desired behavior." yield ( "# * Remove `managed = False` lines if you wish to allow " "Django to create, modify, and delete the table" diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py index b98095739c..fecd3936ce 100644 --- a/django/db/models/expressions.py +++ b/django/db/models/expressions.py @@ -309,7 +309,7 @@ class BaseExpression(object): Does this expression contain a reference to some of the existing aggregates? If so, returns the aggregate and also the lookup parts that *weren't* found. So, if - exsiting_aggregates = {'max_id': Max('id')} + existing_aggregates = {'max_id': Max('id')} self.name = 'max_id' queryset.filter(max_id__range=[10,100]) then this method will return Max('id') and those parts of the diff --git a/django/template/base.py b/django/template/base.py index 9a06e76818..bbae6a408d 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -354,9 +354,9 @@ class Token(object): for bit in bits: # Handle translation-marked template pieces if bit.startswith(('_("', "_('")): - sentinal = bit[2] + ')' + sentinel = bit[2] + ')' trans_bit = [bit] - while not bit.endswith(sentinal): + while not bit.endswith(sentinel): bit = next(bits) trans_bit.append(bit) bit = ' '.join(trans_bit) diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 02ecb34828..b164420016 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -797,7 +797,7 @@ def default_if_none(value, arg): @register.filter(is_safe=False) def divisibleby(value, arg): - """Returns True if the value is devisible by the argument.""" + """Returns True if the value is divisible by the argument.""" return int(value) % int(arg) == 0 diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 2934f5756e..1f3cadee13 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -764,7 +764,7 @@ def do_for(parser, token): than -- the following::