Used https for most *.python.org links

This commit is contained in:
Claude Paroz 2014-12-19 16:25:57 +01:00
parent 742fba9455
commit 0a4b04fc23
36 changed files with 52 additions and 57 deletions

View file

@ -405,7 +405,7 @@ translates (roughly) into the following SQL:
arguments whose names and values are evaluated at runtime. For more
information, see `Keyword Arguments`_ in the official Python tutorial.
.. _`Keyword Arguments`: http://docs.python.org/tutorial/controlflow.html#keyword-arguments
.. _`Keyword Arguments`: https://docs.python.org/tutorial/controlflow.html#keyword-arguments
The field specified in a lookup has to be the name of a model field. There's
one exception though, in case of a :class:`~django.db.models.ForeignKey` you

View file

@ -322,7 +322,7 @@ an unexpected behavior in magic method lookups (`Python ticket #9220`_).
Django 1.7 explicitly added support to allow using a cursor as context
manager.
.. _`Python ticket #9220`: http://bugs.python.org/issue9220
.. _`Python ticket #9220`: https://bugs.python.org/issue9220
Using a cursor as a context manager::

View file

@ -105,7 +105,7 @@ Django provides a single API to control database transactions.
completes successfully, its effects can still be rolled back if an
exception is raised in the outer block at a later point.
``atomic`` is usable both as a `decorator`_::
``atomic`` is usable both as a :py:term:`decorator`::
from django.db import transaction
@ -114,7 +114,7 @@ Django provides a single API to control database transactions.
# This code executes inside a transaction.
do_stuff()
and as a `context manager`_::
and as a :py:term:`context manager`::
from django.db import transaction
@ -126,9 +126,6 @@ Django provides a single API to control database transactions.
# This code executes inside a transaction.
do_more_stuff()
.. _decorator: http://docs.python.org/glossary.html#term-decorator
.. _context manager: http://docs.python.org/glossary.html#term-context-manager
Wrapping ``atomic`` in a try/except block allows for natural handling of
integrity errors::