Closed MaferMazu closed 9 months ago
django.conf.urls.url() was deprecated in Django 3.0, and is removed in Django 4.0+. To stay updated and be able to use the code with Quince that uses Django 4.0+, we change the url function to re_path.
django.conf.urls.url()
url
re_path
The version of Django in Quince: https://github.com/openedx/edx-platform/blob/open-release/quince.master/requirements/edx/base.txt#L184 Deprecation note: https://code.djangoproject.com/ticket/31534 Example of re_path use in other of our repositories (eox-tenant): https://github.com/eduNEXT/eox-tenant/blob/master/eox_tenant/api/urls.py
Description
django.conf.urls.url()
was deprecated in Django 3.0, and is removed in Django 4.0+. To stay updated and be able to use the code with Quince that uses Django 4.0+, we change theurl
function tore_path
.The version of Django in Quince: https://github.com/openedx/edx-platform/blob/open-release/quince.master/requirements/edx/base.txt#L184 Deprecation note: https://code.djangoproject.com/ticket/31534 Example of re_path use in other of our repositories (eox-tenant): https://github.com/eduNEXT/eox-tenant/blob/master/eox_tenant/api/urls.py
Checklist for Merge
Links