From 785cc71d5b3300e2702b0b2fc7316e58ca70b563 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 17 Aug 2015 13:45:07 -0400 Subject: Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline. --- docs/ref/templates/builtins.txt | 7 ------- docs/ref/urlresolvers.txt | 23 ++--------------------- 2 files changed, 2 insertions(+), 28 deletions(-) (limited to 'docs') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index a21dd75caf..9bf22e4740 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1051,13 +1051,6 @@ This will follow the normal :ref:`namespaced URL resolution strategy `, including using any hints provided by the context as to the current application. -.. deprecated:: 1.8 - - You can also pass a dotted Python path to a view function, but this syntax - is deprecated and will be removed in Django 1.10:: - - {% url 'path.to.some_view' v1 v2 %} - .. warning:: Don't forget to put quotes around the :func:`~django.conf.urls.url` diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index 8e9634c31d..116aa4fcd0 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -12,9 +12,8 @@ your code, Django provides the following function: .. function:: reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None) -``viewname`` can be a string containing the Python path to the view object, a -:ref:`URL pattern name `, or the callable view object. -For example, given the following ``url``:: +``viewname`` can be a :ref:`URL pattern name ` or the +callable view object. For example, given the following ``url``:: from news import views @@ -63,24 +62,6 @@ namespaces into URLs on specific application instances, according to the The ``urlconf`` argument is the URLconf module containing the url patterns to use for reversing. By default, the root URLconf for the current thread is used. -.. deprecated:: 1.8 - - The ability to reverse using the Python path, e.g. - ``reverse('news.views.archive')``, has been deprecated. - -.. admonition:: Make sure your views are all correct. - - As part of working out which URL names map to which patterns, the - ``reverse()`` function has to import all of your URLconf files and examine - the name of each view. This involves importing each view function. If - there are *any* errors whilst importing any of your view functions, it - will cause ``reverse()`` to raise an error, even if that view function is - not the one you are trying to reverse. - - Make sure that any views you reference in your URLconf files exist and can - be imported correctly. Do not include lines that reference views you - haven't written yet, because those views will not be importable. - .. note:: The string returned by ``reverse()`` is already -- cgit v1.3