Fixed more broken links. refs #19516
This commit is contained in:
parent
b70498d675
commit
9c5a6adf33
|
@ -296,7 +296,7 @@ __ http://www.gdal.org/ogr/ogr_formats.html
|
||||||
Returns the type of geometry for this feature, as an :class:`OGRGeomType`
|
Returns the type of geometry for this feature, as an :class:`OGRGeomType`
|
||||||
object. This will be the same for all features in a given layer, and
|
object. This will be the same for all features in a given layer, and
|
||||||
is equivalent to the :attr:`Layer.geom_type` property of the
|
is equivalent to the :attr:`Layer.geom_type` property of the
|
||||||
:class:`Layer`` object the feature came from.
|
:class:`Layer` object the feature came from.
|
||||||
|
|
||||||
.. attribute:: num_fields
|
.. attribute:: num_fields
|
||||||
|
|
||||||
|
|
|
@ -919,7 +919,7 @@ A :class:`CharField` for a URL.
|
||||||
The default form widget for this field is a :class:`~django.forms.TextInput`.
|
The default form widget for this field is a :class:`~django.forms.TextInput`.
|
||||||
|
|
||||||
Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
|
Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
|
||||||
:attr:`~CharField.max_length`argument. If you don't specify
|
:attr:`~CharField.max_length` argument. If you don't specify
|
||||||
:attr:`~CharField.max_length`, a default of 200 is used.
|
:attr:`~CharField.max_length`, a default of 200 is used.
|
||||||
|
|
||||||
.. versionadded:: 1.5
|
.. versionadded:: 1.5
|
||||||
|
|
|
@ -85,14 +85,14 @@ Django quotes column and table names behind the scenes.
|
||||||
|
|
||||||
The name of an orderable field in the model, typically a :class:`DateField`,
|
The name of an orderable field in the model, typically a :class:`DateField`,
|
||||||
:class:`DateTimeField`, or :class:`IntegerField`. This specifies the default
|
:class:`DateTimeField`, or :class:`IntegerField`. This specifies the default
|
||||||
field to use in your model :class:`Manager`'s :class:`~QuerySet.latest`
|
field to use in your model :class:`Manager`'s
|
||||||
method.
|
:meth:`~django.db.models.query.QuerySet.latest` method.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
get_latest_by = "order_date"
|
get_latest_by = "order_date"
|
||||||
|
|
||||||
See the docs for :meth:`~django.db.models.query.QuerySet.latest` for more.
|
See the :meth:`~django.db.models.query.QuerySet.latest` docs for more.
|
||||||
|
|
||||||
``managed``
|
``managed``
|
||||||
-----------
|
-----------
|
||||||
|
|
|
@ -1637,7 +1637,7 @@ Finally, realize that ``update()`` does an update at the SQL level and, thus,
|
||||||
does not call any ``save()`` methods on your models, nor does it emit the
|
does not call any ``save()`` methods on your models, nor does it emit the
|
||||||
:attr:`~django.db.models.signals.pre_save` or
|
:attr:`~django.db.models.signals.pre_save` or
|
||||||
:attr:`~django.db.models.signals.post_save` signals (which are a consequence of
|
:attr:`~django.db.models.signals.post_save` signals (which are a consequence of
|
||||||
calling :meth:`Model.save() <~django.db.models.Model.save()>`). If you want to
|
calling :meth:`Model.save() <django.db.models.Model.save>`). If you want to
|
||||||
update a bunch of records for a model that has a custom
|
update a bunch of records for a model that has a custom
|
||||||
:meth:`~django.db.models.Model.save()` method, loop over them and call
|
:meth:`~django.db.models.Model.save()` method, loop over them and call
|
||||||
:meth:`~django.db.models.Model.save()`, like this::
|
:meth:`~django.db.models.Model.save()`, like this::
|
||||||
|
|
|
@ -159,7 +159,7 @@ The cache backend to use. The built-in cache backends are:
|
||||||
* ``'django.core.cache.backends.memcached.PyLibMCCache'``
|
* ``'django.core.cache.backends.memcached.PyLibMCCache'``
|
||||||
|
|
||||||
You can use a cache backend that doesn't ship with Django by setting
|
You can use a cache backend that doesn't ship with Django by setting
|
||||||
:setting:`BACKEND <CACHE-BACKEND>` to a fully-qualified path of a cache
|
:setting:`BACKEND <CACHES-BACKEND>` to a fully-qualified path of a cache
|
||||||
backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
|
backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
|
||||||
Writing a whole new cache backend from scratch is left as an exercise
|
Writing a whole new cache backend from scratch is left as an exercise
|
||||||
to the reader; see the other backends for examples.
|
to the reader; see the other backends for examples.
|
||||||
|
@ -830,7 +830,7 @@ DEFAULT_EXCEPTION_REPORTER_FILTER
|
||||||
Default: :class:`django.views.debug.SafeExceptionReporterFilter`
|
Default: :class:`django.views.debug.SafeExceptionReporterFilter`
|
||||||
|
|
||||||
Default exception reporter filter class to be used if none has been assigned to
|
Default exception reporter filter class to be used if none has been assigned to
|
||||||
the :class:`HttpRequest` instance yet.
|
the :class:`~django.http.HttpRequest` instance yet.
|
||||||
See :ref:`Filtering error reports<filtering-error-reports>`.
|
See :ref:`Filtering error reports<filtering-error-reports>`.
|
||||||
|
|
||||||
.. setting:: DEFAULT_FILE_STORAGE
|
.. setting:: DEFAULT_FILE_STORAGE
|
||||||
|
@ -1070,6 +1070,8 @@ Note that these paths should use Unix-style forward slashes, even on Windows.
|
||||||
|
|
||||||
See :ref:`initial-data-via-fixtures` and :ref:`topics-testing-fixtures`.
|
See :ref:`initial-data-via-fixtures` and :ref:`topics-testing-fixtures`.
|
||||||
|
|
||||||
|
.. setting:: FORCE_SCRIPT_NAME
|
||||||
|
|
||||||
FORCE_SCRIPT_NAME
|
FORCE_SCRIPT_NAME
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
@ -1498,7 +1500,7 @@ PROFANITIES_LIST
|
||||||
Default: ``()`` (Empty tuple)
|
Default: ``()`` (Empty tuple)
|
||||||
|
|
||||||
A tuple of profanities, as strings, that will be forbidden in comments when
|
A tuple of profanities, as strings, that will be forbidden in comments when
|
||||||
:setting:`COMMENTS_ALLOW_PROFANITIES` is ``False``.
|
``COMMENTS_ALLOW_PROFANITIES`` is ``False``.
|
||||||
|
|
||||||
.. setting:: RESTRUCTUREDTEXT_FILTER_SETTINGS
|
.. setting:: RESTRUCTUREDTEXT_FILTER_SETTINGS
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,13 @@ Aggregate support
|
||||||
It's now possible to run SQL aggregate queries (i.e. ``COUNT()``, ``MAX()``,
|
It's now possible to run SQL aggregate queries (i.e. ``COUNT()``, ``MAX()``,
|
||||||
``MIN()``, etc.) from within Django's ORM. You can choose to either return the
|
``MIN()``, etc.) from within Django's ORM. You can choose to either return the
|
||||||
results of the aggregate directly, or else annotate the objects in a
|
results of the aggregate directly, or else annotate the objects in a
|
||||||
:class:`QuerySet` with the results of the aggregate query.
|
:class:`~django.db.models.query.QuerySet` with the results of the aggregate
|
||||||
|
query.
|
||||||
|
|
||||||
This feature is available as new :meth:`QuerySet.aggregate()`` and
|
This feature is available as new
|
||||||
:meth:`QuerySet.annotate()`` methods, and is covered in detail in :doc:`the ORM
|
:meth:`~django.db.models.query.QuerySet.aggregate` and
|
||||||
aggregation documentation </topics/db/aggregation>`
|
:meth:`~django.db.models.query.QuerySet.annotate` methods, and is covered in
|
||||||
|
detail in :doc:`the ORM aggregation documentation </topics/db/aggregation>`.
|
||||||
|
|
||||||
Query expressions
|
Query expressions
|
||||||
~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -198,11 +198,13 @@ Aggregate support
|
||||||
It's now possible to run SQL aggregate queries (i.e. ``COUNT()``, ``MAX()``,
|
It's now possible to run SQL aggregate queries (i.e. ``COUNT()``, ``MAX()``,
|
||||||
``MIN()``, etc.) from within Django's ORM. You can choose to either return the
|
``MIN()``, etc.) from within Django's ORM. You can choose to either return the
|
||||||
results of the aggregate directly, or else annotate the objects in a
|
results of the aggregate directly, or else annotate the objects in a
|
||||||
:class:`QuerySet` with the results of the aggregate query.
|
:class:`~django.db.models.query.QuerySet` with the results of the aggregate
|
||||||
|
query.
|
||||||
|
|
||||||
This feature is available as new :meth:`QuerySet.aggregate()`` and
|
This feature is available as new
|
||||||
:meth:`QuerySet.annotate()`` methods, and is covered in detail in :doc:`the ORM
|
:meth:`~django.db.models.query.QuerySet.aggregate` and
|
||||||
aggregation documentation </topics/db/aggregation>`.
|
:meth:`~django.db.models.query.QuerySet.annotate` methods, and is covered in
|
||||||
|
detail in :doc:`the ORM aggregation documentation </topics/db/aggregation>`.
|
||||||
|
|
||||||
Query expressions
|
Query expressions
|
||||||
~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -61,15 +61,14 @@ Django 1.3 ships with a new contrib app ``'django.contrib.staticfiles'``
|
||||||
to help developers handle the static media files (images, CSS, Javascript,
|
to help developers handle the static media files (images, CSS, Javascript,
|
||||||
etc.) that are needed to render a complete web page.
|
etc.) that are needed to render a complete web page.
|
||||||
|
|
||||||
In previous versions of Django, it was common to place static assets in
|
In previous versions of Django, it was common to place static assets
|
||||||
:setting:`MEDIA_ROOT` along with user-uploaded files, and serve them both at
|
in :setting:`MEDIA_ROOT` along with user-uploaded files, and serve
|
||||||
:setting:`MEDIA_URL`. Part of the purpose of introducing the ``staticfiles``
|
them both at :setting:`MEDIA_URL`. Part of the purpose of introducing
|
||||||
app is to make it easier to keep static files separate from user-uploaded
|
the ``staticfiles`` app is to make it easier to keep static files
|
||||||
files. For this reason, you will probably want to make your
|
separate from user-uploaded files. Static assets should now go in
|
||||||
:setting:`MEDIA_ROOT` and :setting:`MEDIA_URL` different from your
|
``static/`` subdirectories of your apps or in other static assets
|
||||||
:setting:`STATICFILES_ROOT` and :setting:`STATICFILES_URL`. You will need to
|
directories listed in :setting:`STATICFILES_DIRS`, and will be served
|
||||||
arrange for serving of files in :setting:`MEDIA_ROOT` yourself;
|
at :setting:`STATIC_URL`.
|
||||||
``staticfiles`` does not deal with user-uploaded media at all.
|
|
||||||
|
|
||||||
See the :doc:`reference documentation of the app </ref/contrib/staticfiles>`
|
See the :doc:`reference documentation of the app </ref/contrib/staticfiles>`
|
||||||
for more details or learn how to :doc:`manage static files
|
for more details or learn how to :doc:`manage static files
|
||||||
|
|
|
@ -37,8 +37,8 @@ Other notable new features in Django 1.4 include:
|
||||||
the ability to `bulk insert <#model-objects-bulk-create-in-the-orm>`_
|
the ability to `bulk insert <#model-objects-bulk-create-in-the-orm>`_
|
||||||
large datasets for improved performance, and
|
large datasets for improved performance, and
|
||||||
`QuerySet.prefetch_related`_, a method to batch-load related objects
|
`QuerySet.prefetch_related`_, a method to batch-load related objects
|
||||||
in areas where :meth:`~django.db.models.QuerySet.select_related` doesn't
|
in areas where :meth:`~django.db.models.query.QuerySet.select_related`
|
||||||
work.
|
doesn't work.
|
||||||
|
|
||||||
* Some nice security additions, including `improved password hashing`_
|
* Some nice security additions, including `improved password hashing`_
|
||||||
(featuring PBKDF2_ and bcrypt_ support), new `tools for cryptographic
|
(featuring PBKDF2_ and bcrypt_ support), new `tools for cryptographic
|
||||||
|
|
Loading…
Reference in New Issue