mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Updated doc links to point to Python 3 documentation
This commit is contained in:
parent
6d6af7244b
commit
680a0f08b1
22 changed files with 68 additions and 71 deletions
|
@ -440,9 +440,9 @@ Settings
|
|||
Better exceptions
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
The old :exc:`~exceptions.EnvironmentError` has split into an
|
||||
:exc:`~exceptions.ImportError` when Django fails to find the settings module
|
||||
and a :exc:`~exceptions.RuntimeError` when you try to reconfigure settings
|
||||
The old :exc:`EnvironmentError` has split into an
|
||||
:exc:`ImportError` when Django fails to find the settings module
|
||||
and a :exc:`RuntimeError` when you try to reconfigure settings
|
||||
after having already used them.
|
||||
|
||||
:setting:`LOGIN_URL` has moved
|
||||
|
@ -479,7 +479,7 @@ Different exception from ``get()``
|
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Managers now return a :exc:`~django.core.exceptions.MultipleObjectsReturned`
|
||||
exception instead of :exc:`~exceptions.AssertionError`:
|
||||
exception instead of :exc:`AssertionError`:
|
||||
|
||||
Old (0.96)::
|
||||
|
||||
|
|
|
@ -550,8 +550,7 @@ Miscellaneous
|
|||
``QuerySet`` as the empty value instead of an empty list.
|
||||
|
||||
* :func:`~django.utils.http.int_to_base36` properly raises a
|
||||
:exc:`~exceptions.TypeError` instead of :exc:`~exceptions.ValueError` for
|
||||
non-integer inputs.
|
||||
:exc:`TypeError` instead of :exc:`ValueError` for non-integer inputs.
|
||||
|
||||
* The ``slugify`` template filter is now available as a standard python
|
||||
function at :func:`django.utils.text.slugify`. Similarly, ``remove_tags`` is
|
||||
|
|
|
@ -589,8 +589,7 @@ Miscellaneous
|
|||
``QuerySet`` as the empty value instead of an empty list.
|
||||
|
||||
* :func:`~django.utils.http.int_to_base36` properly raises a
|
||||
:exc:`~exceptions.TypeError` instead of :exc:`~exceptions.ValueError` for
|
||||
non-integer inputs.
|
||||
:exc:`TypeError` instead of :exc:`ValueError` for non-integer inputs.
|
||||
|
||||
* The ``slugify`` template filter is now available as a standard python
|
||||
function at :func:`django.utils.text.slugify`. Similarly, ``remove_tags`` is
|
||||
|
|
|
@ -667,8 +667,7 @@ Miscellaneous
|
|||
``QuerySet`` as the empty value instead of an empty list.
|
||||
|
||||
* :func:`~django.utils.http.int_to_base36` properly raises a
|
||||
:exc:`~exceptions.TypeError` instead of :exc:`~exceptions.ValueError` for
|
||||
non-integer inputs.
|
||||
:exc:`TypeError` instead of :exc:`ValueError` for non-integer inputs.
|
||||
|
||||
* The ``slugify`` template filter is now available as a standard python
|
||||
function at :func:`django.utils.text.slugify`. Similarly, ``remove_tags`` is
|
||||
|
|
|
@ -168,7 +168,7 @@ Minor features
|
|||
:setting:`CSRF_COOKIE_HTTPONLY`.
|
||||
|
||||
* The :meth:`~django.test.TransactionTestCase.assertQuerysetEqual` now checks
|
||||
for undefined order and raises :exc:`~exceptions.ValueError` if undefined
|
||||
for undefined order and raises :exc:`ValueError` if undefined
|
||||
order is spotted. The order is seen as undefined if the given ``QuerySet``
|
||||
isn't ordered and there are more than one ordered values to compare against.
|
||||
|
||||
|
|
|
@ -944,8 +944,8 @@ the app cache was a private API, obsolete methods and arguments will be
|
|||
removed through a standard deprecation path, with the exception of the
|
||||
following changes that take effect immediately:
|
||||
|
||||
* ``get_model`` raises :exc:`~exceptions.LookupError` instead of returning
|
||||
``None`` when no model is found.
|
||||
* ``get_model`` raises :exc:`LookupError` instead of returning ``None`` when no
|
||||
model is found.
|
||||
|
||||
* The ``only_installed`` argument of ``get_model`` and ``get_models`` no
|
||||
longer exists, nor does the ``seed_cache`` argument of ``get_model``.
|
||||
|
@ -1005,9 +1005,9 @@ pytz may be required
|
|||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If your project handles datetimes before 1970 or after 2037 and Django raises
|
||||
a :exc:`~exceptions.ValueError` when encountering them, you will have to
|
||||
install pytz_. You may be affected by this problem if you use Django's time
|
||||
zone-related date formats or :mod:`django.contrib.syndication`.
|
||||
a :exc:`ValueError` when encountering them, you will have to install pytz_. You
|
||||
may be affected by this problem if you use Django's time zone-related date
|
||||
formats or :mod:`django.contrib.syndication`.
|
||||
|
||||
.. _pytz: https://pypi.python.org/pypi/pytz/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue