django-cms: urls used by apphooks don't work with reverse() or {% url %}

前端 未结 1 1549
孤独总比滥情好
孤独总比滥情好 2020-12-30 07:23

I\'m using django-cms with apphooks to display book detail information. I need the page with the app hook to accept a slug that specifies which book to display.

I c

相关标签:
1条回答
  • 2020-12-30 07:48

    This was apparently due to our application having cms.middleware.multilingual.MultilingualURLMiddleware which then forced all {% url %} template tags and the reverse() function to require the language namespace.

    Since our site is not localized, removing the middleware worked fine. The documentation didn't seem that clear to me on this and finally found the answer from another source.

    0 讨论(0)
提交回复
热议问题