Re: Generate different querysets depending of the website language

2016-03-30 Thread Mathieu Poussin
d be your are placing LocaleMiddleware after your > ForceDefaultLanguage, > so > https://github.com/django/django/blob/master/django/middleware/locale.py#L26 > is setting the default language. > > Hope it helps. > > El sábado, 26 de marzo de 2016, 20:43:09 (UTC+1), Mathie

Re: Generate different querysets depending of the website language

2016-03-27 Thread Mathieu Poussin
.com/en/1.9/topics/i18n/translation/#module-django.conf.urls.i18n] > > (Not confirmed, but was true last time I checked it) > > > Hope it helps. > > El sábado, 26 de marzo de 2016, 20:43:09 (UTC+1), Mathieu Poussin escribió: >> >> Hello, >> >> I have

Generate different querysets depending of the website language

2016-03-26 Thread Mathieu Poussin
Hello, I have an issue, I am creating a website that will be available in many languages, sharing the same database. Most models have a "language" attribute that is the 2 letters from the language code (en, es, fr, etc.). I am trying to find a way to show the correct content per language. I

Use .html at the end of the url instead of / ?

2007-10-17 Thread Mathieu Poussin
Hello , i have a question, by default , django add a slash at the end of the url , like that : http://my/documents/hello -> http://my/documents/hello/ it's possible to add .html instead of that ? like that : http://my/documents/hello -> http://my/documents/hello.html if yes, how ? thanks ,