diff options
| author | David Smith <smithdc@gmail.com> | 2020-05-04 19:33:35 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-05 07:34:34 +0200 |
| commit | 2522559d1a612a4e8885de4780ff2b7aa7b8d375 (patch) | |
| tree | ac3a7500811bd68fe4f4f9dfbe568c32e22f04dd /docs/releases | |
| parent | f2051eb8a7febdaaa43bd33bf5a6108c5f428e59 (diff) | |
Fixed #31534 -- Deprecated django.conf.urls.url().
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.6.txt | 2 | ||||
| -rw-r--r-- | docs/releases/1.8.1.txt | 2 | ||||
| -rw-r--r-- | docs/releases/1.8.txt | 8 | ||||
| -rw-r--r-- | docs/releases/1.9.txt | 2 | ||||
| -rw-r--r-- | docs/releases/3.1.txt | 3 |
5 files changed, 10 insertions, 7 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index 7dc57ee11b..71457f15f6 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -916,7 +916,7 @@ Miscellaneous * :ref:`Authentication views <built-in-auth-views>` are now reversed by name, not their locations in ``django.contrib.auth.views``. If you are using the views without a ``name``, you should update your ``urlpatterns`` to use - :meth:`~django.conf.urls.url` with the ``name`` parameter. For example:: + ``django.conf.urls.url()`` with the ``name`` parameter. For example:: (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete') diff --git a/docs/releases/1.8.1.txt b/docs/releases/1.8.1.txt index 085bfe3ace..709a478d9e 100644 --- a/docs/releases/1.8.1.txt +++ b/docs/releases/1.8.1.txt @@ -48,7 +48,7 @@ Bugfixes * Updated ``urlpatterns`` examples generated by :djadmin:`startproject` to remove usage of referencing views by dotted path in - :func:`~django.conf.urls.url` which is deprecated in Django 1.8 + ``django.conf.urls.url()`` which is deprecated in Django 1.8 (:ticket:`24635`). * Fixed queries where an expression was referenced in ``order_by()``, but wasn't diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index fab2fe9187..3845176827 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -1270,7 +1270,7 @@ Thus ``patterns()`` serves little purpose and is a burden when teaching new user (answering the newbie's question "why do I need this empty string as the first argument to ``patterns()``?"). For these reasons, we are deprecating it. Updating your code is as simple as ensuring that ``urlpatterns`` is a list of -:func:`django.conf.urls.url` instances. For example:: +``django.conf.urls.url()`` instances. For example:: from django.conf.urls import url from myapp import views @@ -1280,8 +1280,8 @@ Updating your code is as simple as ensuring that ``urlpatterns`` is a list of url('^other/$', views.otherview), ] -Passing a string as ``view`` to :func:`~django.conf.urls.url` -------------------------------------------------------------- +Passing a string as ``view`` to ``django.conf.urls.url()`` +---------------------------------------------------------- Related to the previous item, referencing views as strings in the ``url()`` function is deprecated. Pass the callable view as described in the previous @@ -1319,7 +1319,7 @@ instead. Related to the previous item, the ``prefix`` argument to :func:`django.conf.urls.i18n.i18n_patterns` has been deprecated. Simply pass a -list of :func:`django.conf.urls.url` instances instead. +list of ``django.conf.urls.url()`` instances instead. Using an incorrect count of unpacked values in the :ttag:`for` template tag --------------------------------------------------------------------------- diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 171d427619..69b41f1c08 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -1289,7 +1289,7 @@ to: This change also means that the old way of including an ``AdminSite`` instance is deprecated. Instead, pass ``admin.site.urls`` directly to -:func:`~django.conf.urls.url()`: +``django.conf.urls.url()``: .. code-block:: python :caption: urls.py diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index c4863a3ab4..e3f0353d2d 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -754,6 +754,9 @@ Miscellaneous * The ``NullBooleanField`` model field is deprecated in favor of ``BooleanField(null=True)``. +* ``django.conf.urls.url()`` alias of :func:`django.urls.re_path` is + deprecated. + .. _removed-features-3.1: Features removed in 3.1 |
