Skip to content

Commit

Permalink
hotfix: fix 500 error of "taggit_autosuggest-list" (#254)
Browse files Browse the repository at this point in the history
```
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.
  • Loading branch information
wesleyboar committed Nov 28, 2023
1 parent 1dbddc1 commit b388e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecep_cms/src/taccsite_cms/urls_custom.py
Original file line number Diff line number Diff line change
@@ -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')),
]

0 comments on commit b388e4b

Please sign in to comment.