A
A
Alexander2016-04-29 12:25:48
Django
Alexander, 2016-04-29 12:25:48

How to disable language redirection?

my default is ru ,

LANGUAGE_CODE = 'ru'
from django.utils.translation import ugettext_lazy as _
LANGUAGES = (
    ('en', _('English')),
    ('ru', _('Russian')),
)

when I go to 127.0.0.1:8000 it substitutes ru at the end of the domain 127.0.0.1:8000/ru
how to make django not add ru to me at the end ? they say it's bad for SEO.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-04-29
@kentuck1213

https://github.com/st4lk/django-solid-i18n-urls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question