From 7f6b2944625edccc780a5a10011c3cd0c89e1620 Mon Sep 17 00:00:00 2001 From: Beto Fandino Date: Wed, 3 Jul 2024 00:20:08 -0400 Subject: [PATCH] feat: upgraded import of re_path in url --- nau_openedx_extensions/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nau_openedx_extensions/urls.py b/nau_openedx_extensions/urls.py index 1340e17..741c62c 100644 --- a/nau_openedx_extensions/urls.py +++ b/nau_openedx_extensions/urls.py @@ -3,20 +3,20 @@ from __future__ import absolute_import, unicode_literals from django.conf import settings -from django.conf.urls import url +from django.urls import re_path from nau_openedx_extensions.message_gateway.views import api as message_gateway_api from nau_openedx_extensions.message_gateway.views import tab as message_gateway_tab urlpatterns = [ - url( + re_path( r"^nau-tools/{}/$".format( settings.COURSE_ID_PATTERN, ), message_gateway_tab.NauMessageGatewayTabView.as_view(), name="nau_tools", ), - url( + re_path( r"^nau-tools/{}/send-message$".format( settings.COURSE_ID_PATTERN, ),