eduNEXT / eox-core

eox-core is a plugin to extend the core functionality in Open edX
GNU Affero General Public License v3.0
15 stars 9 forks source link

fix: update urls in favor of re_path for deprecation #260

Closed MaferMazu closed 9 months ago

MaferMazu commented 10 months ago

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 the url function to 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

Checklist for Merge

Links