Hi everybody I am applying Django internalization for a multilingual site. I am facing a problem with making href URL dynamic instead of repeating same code manually.
[image: url.png] I tried this but cant get perfect href dynamically. please help me same problem I am facing in language switcher href also. {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% get_language_info_list for LANGUAGES as languages %} {% get_language_info for LANGUAGE_CODE as lang %} {% for lang in languages %} <link rel="alternate" hreflang="{{ lang.code }}" href="/{{ lang.code }}/"> {% endfor %} [image: loop.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6c5c96ea-9866-40b2-9c23-9b03d771ae7en%40googlegroups.com.