Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/faq/general.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ It's difficult to give an official citation format, for two reasons: citation
formats can vary wildly between publications, and citation standards for
software are still a matter of some debate.

For example, `APA style`_, would dictate something like:
For example, `APA style`_, would dictate something like:

.. code-block:: text

Expand All @@ -217,7 +217,7 @@ If you need a web address, use https://www.djangoproject.com/.
If you need a name, just use "Django", without any tagline.

If you need a publication date, use the year of release of the version you're
referencing (e.g., 2013 for v1.5)
referencing (e.g., 2013 for v1.5).

.. _APA style: https://apastyle.apa.org/

Expand Down
2 changes: 1 addition & 1 deletion docs/howto/csrf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To take advantage of CSRF protection in your views, follow these steps:
#. The CSRF middleware is activated by default in the :setting:`MIDDLEWARE`
setting. If you override that setting, remember that
``'django.middleware.csrf.CsrfViewMiddleware'`` should come before any view
middleware that assume that CSRF attacks have been dealt with.
middleware that assumes that CSRF attacks have been dealt with.

If you disabled it, which is not recommended, you can use
:func:`~django.views.decorators.csrf.csrf_protect` on particular views
Expand Down
2 changes: 1 addition & 1 deletion docs/howto/custom-file-storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You'll need to follow these steps:
the ``path()`` method.

#. Your storage class must be :ref:`deconstructible
<custom-deconstruct-method>` so it can be serialized when it's used on a
<custom-deconstruct-method>` so it can be serialized when it's used on a
field in a migration. As long as your field has arguments that are
themselves :ref:`serializable <migration-serializing>`, you can use the
``django.utils.deconstruct.deconstructible`` class decorator for this
Expand Down
2 changes: 1 addition & 1 deletion docs/howto/custom-lookups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ names are always lowercase strings containing only letters, but the only hard
requirement is that it must not contain the string ``__``.

We then need to define the ``as_sql`` method. This takes a ``SQLCompiler``
object, called ``compiler``, and the active database connection.
object, called ``compiler``, and the active database connection.
``SQLCompiler`` objects are not documented, but the only thing we need to know
about them is that they have a ``compile()`` method which returns a tuple
containing an SQL string, and the parameters to be interpolated into that
Expand Down
6 changes: 3 additions & 3 deletions docs/intro/contributing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ and the processes involved. Specifically, we'll be covering the following:

Once you're done with the tutorial, you can look through the rest of
:doc:`Django's documentation on contributing</internals/contributing/index>`.
It contains lots of great information and is a must read for anyone who'd like
It contains lots of great information and is a must-read for anyone who'd like
to become a regular contributor to Django. If you've got questions, it's
probably got the answers.

Expand Down Expand Up @@ -121,7 +121,7 @@ Download the Django source code repository using the following command:
.. admonition:: Low bandwidth connection?

You can add the ``--depth 1`` argument to ``git clone`` to skip downloading
all of Django's commit history, which reduces data transfer from ~250 MB
all of Django's commit history, which reduces data transfer from ~250 MB
to ~70 MB.

Now that you have a local copy of Django, you can install it just like you
Expand Down Expand Up @@ -283,7 +283,7 @@ Writing some tests for your ticket

In most cases, for a contribution to be accepted into Django it has to include
tests. For bug fix contributions, this means writing a regression test to
ensure that the bug is never reintroduced into Django later on. A regression
ensure that the bug is never reintroduced into Django later on. A regression
test should be written in such a way that it will fail while the bug still
exists and pass once the bug has been fixed. For contributions containing new
features, you'll need to include tests which ensure that the new features are
Expand Down
2 changes: 1 addition & 1 deletion docs/intro/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ place: read this material to quickly get up and running.
`list of Python resources for non-programmers`_

If you already know a few other languages and want to get up to speed with
Python quickly, we recommend referring the official
Python quickly, we recommend referring to the official
`Python documentation`_, which provides comprehensive and authoritative
information about the language, as well as links to other resources such as
a list of `books about Python`_.
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/contrib/admin/actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ that the action was successful::
messages.SUCCESS,
)

This make the action match what the admin itself does after successfully
This makes the action match what the admin itself does after successfully
performing an action:

.. image:: _images/actions-as-modeladmin-methods.png
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/contrib/admin/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3097,7 +3097,7 @@ Templates can override or extend base admin templates as described in
as options to the admin class.

Raises :class:`~django.core.exceptions.ImproperlyConfigured` if a model is
abstract. and ``django.contrib.admin.exceptions.AlreadyRegistered`` if a
abstract, and ``django.contrib.admin.exceptions.AlreadyRegistered`` if a
model is already registered.

.. method:: AdminSite.unregister(model_or_iterable)
Expand Down
4 changes: 2 additions & 2 deletions docs/ref/contrib/gis/tutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ a ``contains`` lookup using the ``pnt_wkt`` as the parameter:
>>> WorldBorder.objects.filter(mpoly__contains=pnt_wkt)
<QuerySet [<WorldBorder: United States>]>

Here, you retrieved a ``QuerySet`` with only one model: the border of the
United States (exactly what you would expect).
Here, you retrieved a ``QuerySet`` with only one model instance: the border of
the United States (exactly what you would expect).

Similarly, you may also use a :doc:`GEOS geometry object
</ref/contrib/gis/geos>`. Here, you can combine the ``intersects`` spatial
Expand Down
3 changes: 1 addition & 2 deletions docs/ref/request-response.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ middleware class is listed in :setting:`MIDDLEWARE`.
else:
... # Do something for anonymous users.

The :meth:`auser` method does the same thing but can be used from async
contexts.
The :meth:`auser` can be used to access the user in async contexts.

Methods
-------
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/db/aggregation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ To avoid this, you can wrap the non-aggregate expression with

.. code-block:: pycon

>>> from django.db.models import F, Count, Greatest
>>> from django.db.models import AnyValue, F, Count, Greatest
>>> Book.objects.values(
... greatest_pages=Greatest("pages", 600),
... ).annotate(
Expand Down