From ad393beeb71e8774e4bf9ad842b97022e50f1231 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 10 Jan 2017 09:57:49 -0500 Subject: Refs #21927 -- Removed include()'s app_name argument per deprecation timeline. Also removed support for passing a 3-tuple to include() and support for setting an instance namespace without an application namespace. Thanks Marten Kenbeek for completing the patch. --- docs/ref/urls.txt | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/urls.txt b/docs/ref/urls.txt index d1464da66d..505295ede4 100644 --- a/docs/ref/urls.txt +++ b/docs/ref/urls.txt @@ -53,10 +53,9 @@ parameter is useful. ``include()`` ============= -.. function:: include(module, namespace=None, app_name=None) +.. function:: include(module, namespace=None) include(pattern_list) include((pattern_list, app_namespace), namespace=None) - include((pattern_list, app_namespace, instance_namespace)) A function that takes a full Python import path to another URLconf module that should be "included" in this place. Optionally, the :term:`application @@ -68,15 +67,12 @@ parameter is useful. can be used to set a different instance namespace. ``include()`` also accepts as an argument either an iterable that returns - URL patterns, a 2-tuple containing such iterable plus the names of the - application namespaces, or a 3-tuple containing the iterable and the names - of both the application and instance namespace. + URL patterns or a 2-tuple containing such iterable plus the names of the + application namespaces. :arg module: URLconf module (or module name) :arg namespace: Instance namespace for the URL entries being included :type namespace: string - :arg app_name: Application namespace for the URL entries being included - :type app_name: string :arg pattern_list: Iterable of :func:`django.conf.urls.url` instances :arg app_namespace: Application namespace for the URL entries being included :type app_namespace: string @@ -85,20 +81,6 @@ parameter is useful. See :ref:`including-other-urlconfs` and :ref:`namespaces-and-include`. -.. deprecated:: 1.9 - - Support for the ``app_name`` argument is deprecated and will be removed in - Django 2.0. Specify the ``app_name`` as explained in - :ref:`namespaces-and-include` instead. - - Support for passing a 3-tuple is also deprecated and will be removed in - Django 2.0. Pass a 2-tuple containing the pattern list and application - namespace, and use the ``namespace`` argument instead. - - Lastly, support for an instance namespace without an application namespace - has been deprecated and will be removed in Django 2.0. Specify the - application namespace or remove the instance namespace. - ``handler400`` ============== -- cgit v1.3