Optimization for get_search_results() in admin

2016-09-23 Thread petros . moisiadis
Hello, I would like to open a discussion on the change I have proposed with pull request #7277 . To bring the discussion here, the problem with current implementation of get_search_results() is that, when search fields include fields through reverse

Re: What is the standard (ISO 639-1, IETF BCP 47, another) used in get_language?

2016-09-23 Thread Claude Paroz
AFAIK Django receives the language tags from the browsers as IETF language tags, and then convert them in locale names suitable for gettext. https://en.wikipedia.org/wiki/IETF_language_tag https://www.gnu.org/software/gettext/manual/gettext.html#Locale-Names Hope this helps, Claude Le vendredi

What is the standard (ISO 639-1, IETF BCP 47, another) used in get_language?

2016-09-23 Thread Fabio C. Barrionuevo da Luz
Hello. What is the standard (ISO 639-1, ISO 639-2, IETF BCP47, another) used by django in get_language and to_locale functions? I could not find in the documentation or on the source code, that explain exact what the standard is used https://docs.djangoproject.com/en/1.10/topics/i18n/ the

Re: Challenge teaching Django to beginners: urls.py

2016-09-23 Thread Alasdair Nicol
On Friday, 23 September 2016 07:53:49 UTC+1, Sjoerd Job Postmus wrote: > > > I hope I did not offend you with my post on how the code turned out. That > was not my intention, but if it did offend you: my apologies. > > Don't worry, no offence taken :) Cheers, Alasdair -- You received this

Re: Challenge teaching Django to beginners: urls.py

2016-09-23 Thread Sjoerd Job Postmus
On Thursday, September 22, 2016 at 5:39:31 PM UTC+2, Alasdair Nicol wrote: > > On Thursday, 22 September 2016 15:59:12 UTC+1, Sjoerd Job Postmus wrote: >> >> Another part I see is that the high coupling between Django and the URL >> resolvers (as mentioned in >>