DJango: АВТОМАТИЧЕСКОЕ ПЕРЕНАПРАВЛЕНИЕ НА ЯЗЫК ПО УМОЛЧАНИЮ

Hi,

I have a strange problem with my Django website.

In my settings.py my default LANGUAGE_CODE = 'nl'.

When I go to www.example.be with DEBUG = True then I am automatically redirected to www.example.be/nl.
When I go to www.example.be with DEBUG = False then I am not redirected to the default language and I get "Server error (500)".

Why is this not working when DEBUG = False?

Я проверил другие сообщения, касающиеся этой проблемы, но не смог найти решение.

Вернуться на верх