From b388e4b73b2536f1541c9535d871bd50d5315245 Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:34:08 -0600 Subject: [PATCH] hotfix: fix 500 error of "taggit_autosuggest-list" (#254) ``` django.urls.exceptions.NoReverseMatch: Reverse for 'taggit_autosuggest-list' not found. 'taggit_autosuggest-list' is not a valid view function or pattern name. ``` The problem is caused by using url, but Django 4 app should use re_path. --- ecep_cms/src/taccsite_cms/urls_custom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecep_cms/src/taccsite_cms/urls_custom.py b/ecep_cms/src/taccsite_cms/urls_custom.py index 795aff92..9d6ea003 100644 --- a/ecep_cms/src/taccsite_cms/urls_custom.py +++ b/ecep_cms/src/taccsite_cms/urls_custom.py @@ -1,6 +1,6 @@ -from django.conf.urls import include, url +from django.urls import include, re_path custom_urls = [ # Support `taggit_autosuggest` (from `djangocms-blog`) - url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), + re_path(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), ]