djangosnippets.org: Latest snippets posted by hermanschttp://djangosnippets.org/users/hermansc/2012-01-07T16:36:32.827050-06:00hermanscMultilingual site based on domain - not accept header and django_session
2012-01-07T16:36:32.827050-06:00hermanschttp://djangosnippets.org/snippets/2640/<p>On our site <a href="http://www.fornebuklinikken.no">Fornebuklinikken - A cosmetic surgeon in Norway</a> we also have a domain <a href="http://www.fornebuklinikken.no">http://fornebuklinikken.com</a> which should be using the 'en' language.</p>
<p>We didn't wan't to use the standard locale lib, and wrote our own middleware which lookups the correct language corresponding to the domain (.no or .com)</p>
<p>Any …</p>
Freely redistributable