Change django.conf.urls.url() to django.urls.re_path()
Categories
(Tree Management :: Treeherder: API, defect)
Tracking
(Not tracked)
People
(Reporter: sparshbansal3june, Assigned: sparshbansal3june)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Steps to reproduce:
The old django.conf.urls.url()
function is replaced with new django.urls.re_path()
function for routing .This would help : https://docs.djangoproject.com/en/3.1/ref/urls/#url
The django.conf.urls.url()
function from previous versions is now available as django.urls.re_path()
. The old location remains for backwards compatibility, without an imminent deprecation.
Actual results:
For Django >= 3.x
, django.conf.urls.url()
will be removed. (https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0)
Assignee | ||
Comment 1•4 years ago
|
||
Assign this bug to me , I will change all the required urls.py files.
Assignee | ||
Updated•4 years ago
|
Comment 2•4 years ago
•
|
||
Hi, thanks for filing! We generally take care of these types of things before we upgrade packages but it doesn't hurt to get a head start on it :) cc'ing :camd since he handles python package updates.
Comment 3•4 years ago
|
||
Description
•