如何修改django cms多语言中间件
嘿伙计们,我正在尝试国际化我的网站,所以我的 settings.py 中有 django cms 多语言中间件类,当从巴西查看时,网址更改为 www.ashtangayogavideo.com/pt/ash/homepage/ 导致 404,因为我的网站位于 www.ashtangayogavideo.com/ash/en/homepage,我如何配置中间件或 settings.py,以便语言代码添加在 /ash/ ? 之后。
hey guys, im trying to internationalize my site, so i have the django cms multilingual middleware class in my settings.py , when viewed from brasil, the url changes to
www.ashtangayogavideo.com/pt/ash/homepage/ resulting in a 404, because my site is in www.ashtangayogavideo.com/ash/en/homepage, how can i configure the middleware, or settings.py, so that the language code is added after the /ash/ ? .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您需要修改 urls.py,而不是您的设置或中间件。
Sounds like you need to modify your urls.py, not your settings or middleware.