Closed bielfrontera closed 1 year ago
@bielfrontera Thank you for pointing this out! Also, your analysis is extremely helpful 👍
@bielfrontera Could you support a fix by testing the PR #136?
pip install git+https://github.com/fsbraun/djangocms-frontend@fix/apphook-reload
Hi @fsbraun, yes, I've tested in my environment with the fix and now it works fine! I've tested the link plugin in some scenarios with no problem (adding, modifying and removing apphooks to force urls reload).
Thanks!
Great! Will go into the next bugfix release!
Describe the bug Under some circumstances, we get a 500 error after opening the dialog to modify a Link. The error is NoReverseMatch 'dcf_autocomplete' is not a registered namespace, raised from a
djangocms_frontend.contrib.link.forms.Select2jqWidget
object.After some digging, we notice that
ApphookReloadMiddleware
reloads the URLs configuration when a new application is added to the pages tree. And in this case, the URL that is installed by djangocms_frontend is no longer available.To Reproduce Steps to reproduce the behavior:
"cms.middleware.utils.ApphookReloadMiddleware"
is included atMIDDLEWARE
settings variable.