1👍
✅
Django already has some i18n support in urls, check it out. You need to activate django.middleware.locale.LocaleMiddleware
by adding it to your settings.MIDDLEWARE_CLASSES
and to tune your urlconf a bit by wrapping your urls with i18n_patterns
.
The complete example is given in the docs, I see no sense copying it here.
Source:stackexchange.com