1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28663 -- Add a check for likely incorrectly migrated django.urls.path() routes.

This commit is contained in:
Chris Lamb
2017-11-07 16:39:59 +00:00
committed by Tim Graham
parent a4f9ef4fe8
commit 998c9dd599
7 changed files with 58 additions and 2 deletions

View File

@@ -98,7 +98,9 @@ Backwards compatibility
Compatibility checks warn of potential problems that might occur after
upgrading Django.
Currently, there aren't any of these checks.
* **2_0.W001**: Your URL pattern ``<pattern>`` has a ``route`` that contains
``(?P<``, begins with a ``^``, or ends with a ``$``. This was likely an
oversight when migrating from ``url()`` to :func:`~django.urls.path`.
Caches
------