Replaced django.conf.urls.url by django.urls.re_path

This commit is contained in:
2025-04-10 12:14:35 +02:00
parent e953dcc7e0
commit b70fbbfa90
7 changed files with 39 additions and 39 deletions

View File

@@ -3,7 +3,7 @@ import os
import pkg_resources
from django.conf import settings
from django.conf.urls import url as django_conf_url, include
from django.urls import re_path, include
DJANGO_MAIN_MODULE = 'main'
MODULE_CONFIG_FILE_NAME = 'module_config.json'
@@ -50,7 +50,7 @@ class ModuleMeta:
def url_conf_pattern(self):
url_pattern = '^{}/'.format(self.url_prefix)
url_conf = self._package_name + '.urls'
return django_conf_url(url_pattern, include(url_conf, self.url_namespace))
return re_path(url_pattern, include(url_conf, self.url_namespace))
def _load_from_package(self):
package_name = self._package_name