what is the purpose of solid_i18n_patterns?
<p>i am new to <strong>python/django</strong> and i just want to know the purpose of below function/code (<code>solid_i18n_patterns</code>). </p>

<pre><code>from django.conf.urls import url
from solid_i18n.urls import solid_i18n_patterns

urlpatterns = 
solid_i18n_patterns(&lt;appname.views&gt;,&lt;urlpattern&gt;,&lt;anotherurlpattern&gt;.....) 
+ 
solid_i18n_patterns(&lt;anotherappname.views&gt;,&lt;urlpattern&gt;,&lt;anotherurlpattern&gt;.....)
</code></pre>

<p>what is the purpose of <code>solid_i18n_patterns</code> and its arguments?</p>

<p>solid_i18n is a helper package for internationalization.
Suppose you have an English website and you want to serve it also in French. By default, If you make your site bilingual, you should specify language code at the beginning of your URLs:</p>

<pre><code>www.example.com/en/* - serves English
www.example.com/fr/* - serves French
</code></pre>

<p>With solid_i18n_patterns, you can serve your default language without language code in URL.</p>

<pre><code>www.example.com/* - serves English (note no /en/ in URL)
www.example.com/fr/* - serves French
</code></pre>

python django url-pattern