How to fork LocaleMiddleware? I need to make a small change.

2020-05-06 Thread Oleg Barbos
When LocaleMiddleware sees the request coming in, it tries to parse the language from the request. See https://github.com/django/django/blob/92507bf3ea4dc467f68edf81a686548fac7ff0e9/django/utils/translation/trans_real.py#L46 for the regular expression used. The allowed format is: any sequence o

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id-b

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id-b

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id-b

A 404 error with “id-” in slug on multilingual website with Indonesian language

2020-05-05 Thread Oleg Barbos
Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id-button/* - 404 error: Using the URLconf defined in example.urls, Django tried these URL patterns