Alvein
Alvein

Reputation: 43

'WSGIRequest' object has no attribute 'LANGUAGE_CODE'

When I disable cms.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.

Upvotes: 1

Views: 3540

Answers (2)

Vivazzi
Vivazzi

Reputation: 119

add 'django.middleware.locale.LocaleMiddleware' to MIDDLEWARE_CLASSES

Upvotes: 8

Alvein
Alvein

Reputation: 43

issue: http://github.com/divio/django-cms/issues/issue/424#issue/424/comment/188388

use "lang = get_language()" in menu pool

Upvotes: 3

Related Questions