Open Bug 1671765 Opened 4 years ago Updated 3 years ago

Change django.conf.urls.url() to django.urls.re_path()

Categories

(Tree Management :: Treeherder: API, defect)

defect

Tracking

(Not tracked)

ASSIGNED

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)

Assign this bug to me , I will change all the required urls.py files.

Flags: needinfo?(sclements)

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.

Assignee: nobody → sparshbansal3june
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(sclements)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: