'WSGI请求'对象没有属性“LANGUAGE_CODE”;
当我禁用时 cms.middleware.multilingual.MultilingualURLMiddleware
我有 渲染“WSGIRequest”对象没有属性“LANGUAGE_CODE”时捕获异常
编辑页面时,或使用 {% show_menu_below_id %}
标签。
我不需要 lang 前缀,请帮我禁用这个东西。
When I disablecms.middleware.multilingual.MultilingualURLMiddleware
I have
Caught an exception while rendering 'WSGIRequest' object has no attribute 'LANGUAGE_CODE'
when edit pages, or use {% show_menu_below_id %}
tag.
I don't need lang prefix please, help me disable this stuff.
将
'django.middleware.locale.LocaleMiddleware'
添加到MIDDLEWARE_CLASSES
add
'django.middleware.locale.LocaleMiddleware'
toMIDDLEWARE_CLASSES