diff options
| author | Tim Graham <timograham@gmail.com> | 2012-12-25 09:56:22 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-12-26 19:07:22 -0500 |
| commit | b3a8c9dab87be6bc4b8096d292abe0b35c700bdd (patch) | |
| tree | f48e2778028ef3c147d688b168f374b9d6dabd26 /docs/topics | |
| parent | e2ec7b47b3acb0338d971942ca7ffd36c2a4d8f4 (diff) | |
Fixed broken links, round 3. refs #19516
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/auth.txt | 4 | ||||
| -rw-r--r-- | docs/topics/db/queries.txt | 4 | ||||
| -rw-r--r-- | docs/topics/i18n/timezones.txt | 5 | ||||
| -rw-r--r-- | docs/topics/i18n/translation.txt | 2 | ||||
| -rw-r--r-- | docs/topics/python3.txt | 4 | ||||
| -rw-r--r-- | docs/topics/security.txt | 6 | ||||
| -rw-r--r-- | docs/topics/serialization.txt | 2 | ||||
| -rw-r--r-- | docs/topics/signals.txt | 2 | ||||
| -rw-r--r-- | docs/topics/testing/index.txt | 2 |
9 files changed, 16 insertions, 15 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 3e2b6bbdbf..e7a0ff114e 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -284,7 +284,7 @@ Manager functions .. versionchanged:: 1.4 The ``email`` parameter was made optional. The username parameter is now checked for emptiness and raises a - :exc:`ValueError` in case of a negative result. + :exc:`~exceptions.ValueError` in case of a negative result. Creates, saves and returns a :class:`~django.contrib.auth.models.User`. @@ -558,7 +558,7 @@ Anonymous users :meth:`~django.contrib.auth.models.User.delete()`, :meth:`~django.contrib.auth.models.User.set_groups()` and :meth:`~django.contrib.auth.models.User.set_permissions()` raise - :exc:`NotImplementedError`. + :exc:`~exceptions.NotImplementedError`. In practice, you probably won't need to use :class:`~django.contrib.auth.models.AnonymousUser` objects on your own, but diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 90c06ac66a..a869b6afad 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -327,8 +327,8 @@ a primary key of 1, Django will raise ``Entry.DoesNotExist``. Similarly, Django will complain if more than one item matches the :meth:`~django.db.models.query.QuerySet.get` query. In this case, it will raise -``MultipleObjectsReturned``, which again is an attribute of the model class -itself. +:exc:`~django.core.exceptions.MultipleObjectsReturned`, which again is an +attribute of the model class itself. Other QuerySet methods diff --git a/docs/topics/i18n/timezones.txt b/docs/topics/i18n/timezones.txt index f3bb13ab03..cefc1667ad 100644 --- a/docs/topics/i18n/timezones.txt +++ b/docs/topics/i18n/timezones.txt @@ -456,8 +456,9 @@ zone support. Fixtures generated with ``USE_TZ = False``, or before Django 1.4, use the "naive" format. If your project contains such fixtures, after you enable time -zone support, you'll see :exc:`RuntimeWarning`\ s when you load them. To get -rid of the warnings, you must convert your fixtures to the "aware" format. +zone support, you'll see :exc:`~exceptions.RuntimeWarning`\ s when you load +them. To get rid of the warnings, you must convert your fixtures to the "aware" +format. You can regenerate fixtures with :djadmin:`loaddata` then :djadmin:`dumpdata`. Or, if they're small enough, you can simply edit them to add the UTC offset diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 65c6fe2445..0b13ea18be 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -928,7 +928,7 @@ function. Example:: :func:`~django.conf.urls.i18n.i18n_patterns` is only allowed in your root URLconf. Using it within an included URLconf will throw an - :exc:`ImproperlyConfigured` exception. + :exc:`~django.core.exceptions.ImproperlyConfigured` exception. .. warning:: diff --git a/docs/topics/python3.txt b/docs/topics/python3.txt index e6dc165399..e1d78a10e6 100644 --- a/docs/topics/python3.txt +++ b/docs/topics/python3.txt @@ -343,7 +343,7 @@ meaning of ``str`` changed. To test these types, use the following idioms:: isinstance(myvalue, bytes) # replacement for str Python ≥ 2.6 provides ``bytes`` as an alias for ``str``, so you don't need -:attr:`six.binary_type`. +:data:`six.binary_type`. ``long`` ~~~~~~~~ @@ -356,7 +356,7 @@ The ``long`` type no longer exists in Python 3. ``1L`` is a syntax error. Use ``xrange`` ~~~~~~~~~~ -Import :func:`six.moves.xrange` wherever you use ``xrange``. +Import ``six.moves.xrange`` wherever you use ``xrange``. Moved modules ~~~~~~~~~~~~~ diff --git a/docs/topics/security.txt b/docs/topics/security.txt index 169f9ac773..9c4c4bbd9e 100644 --- a/docs/topics/security.txt +++ b/docs/topics/security.txt @@ -38,7 +38,7 @@ in unauthorized JavaScript execution, depending on how the browser renders imperfect HTML. It is also important to be particularly careful when using ``is_safe`` with -custom template tags, the :ttag:`safe` template tag, :mod:`mark_safe +custom template tags, the :tfilter:`safe` template tag, :mod:`mark_safe <django.utils.safestring>`, and when autoescape is turned off. In addition, if you are using the template system to output something other @@ -76,8 +76,8 @@ POST to your Web site and have another logged in user unwittingly submit that form. The malicious user would have to know the nonce, which is user specific (using a cookie). -When deployed with :ref:`HTTPS <security-recommendation-ssl>`, -``CsrfViewMiddleware`` will check that the HTTP referer header is set to a +When deployed with :ref:`HTTPS <security-recommendation-ssl>`, +``CsrfViewMiddleware`` will check that the HTTP referer header is set to a URL on the same origin (including subdomain and port). Because HTTPS provides additional security, it is imperative to ensure connections use HTTPS where it is available by forwarding insecure connection requests and using diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index 28f600e223..e36c7587d1 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -193,7 +193,7 @@ This strategy works well for most objects, but it can cause difficulty in some circumstances. Consider the case of a list of objects that have a foreign key referencing -:class:`~django.contrib.conttenttypes.models.ContentType`. If you're going to +:class:`~django.contrib.contenttypes.models.ContentType`. If you're going to serialize an object that refers to a content type, then you need to have a way to refer to that content type to begin with. Since ``ContentType`` objects are automatically created by Django during the database synchronization process, diff --git a/docs/topics/signals.txt b/docs/topics/signals.txt index 1078d0372c..5ea0895c42 100644 --- a/docs/topics/signals.txt +++ b/docs/topics/signals.txt @@ -30,7 +30,7 @@ notifications: * :data:`django.db.models.signals.m2m_changed` - Sent when a :class:`ManyToManyField` on a model is changed. + Sent when a :class:`~django.db.models.ManyToManyField` on a model is changed. * :data:`django.core.signals.request_started` & :data:`django.core.signals.request_finished` diff --git a/docs/topics/testing/index.txt b/docs/topics/testing/index.txt index 0345b72703..94e88bdf04 100644 --- a/docs/topics/testing/index.txt +++ b/docs/topics/testing/index.txt @@ -38,7 +38,7 @@ frameworks are: * **Unit tests** -- tests that are expressed as methods on a Python class that subclasses :class:`unittest.TestCase` or Django's customized - :class:`TestCase`. For example:: + :class:`~django.test.TestCase`. For example:: import unittest |
