mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #14675 -- Completed removal of from django.conf.urls.default import * usage.
This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -290,9 +290,10 @@ Django 1.4 also includes several smaller improvements worth noting:
|
||||
MySQL with the InnoDB database engine.
|
||||
|
||||
* A new 403 response handler has been added as
|
||||
``'django.views.defaults.permission_denied'``. See the documentation
|
||||
about :ref:`the 403 (HTTP Forbidden) view<http_forbidden_view>` for more
|
||||
information.
|
||||
``'django.views.defaults.permission_denied'``. You can set your own handler by
|
||||
setting the value of :data:`django.conf.urls.handler403`. See the
|
||||
documentation about :ref:`the 403 (HTTP Forbidden) view<http_forbidden_view>`
|
||||
for more information.
|
||||
|
||||
* The :ttag:`trans` template tag now takes an optional ``as`` argument to
|
||||
be able to retrieve a translation string without displaying it but setting
|
||||
@@ -590,3 +591,13 @@ backwards-compatibility shim will be removed entirely.
|
||||
|
||||
The existence of any ``'filters'`` key under the ``'mail_admins'`` handler will
|
||||
disable this backward-compatibility shim and deprecation warning.
|
||||
|
||||
``django.conf.urls.defaults``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Until Django 1.3 the functions :func:`~django.conf.urls.include`,
|
||||
:func:`~django.conf.urls.patterns` and :func:`~django.conf.urls.url` plus
|
||||
:data:`~django.conf.urls.handler404`, :data:`~django.conf.urls.handler500`
|
||||
were located in a ``django.conf.urls.defaults`` module.
|
||||
|
||||
Starting with Django 1.4 they are now available in :mod:`django.conf.urls`.
|
||||
|
||||
Reference in New Issue
Block a user