Re: How to populate self._reverse_dict with a default language code ?

2016-09-19 Thread Etienne Robillard
I created a ticket and patch for this issue: https://code.djangoproject.com/ticket/27243 I guess my urlpatterns was improperly configured... However, the real problem was that reverse() didn't handle fully qualified module names. Regards, Etienne Le 2016-09-18 à 19:14, Mike Dewhirst a

Re: How to populate self._reverse_dict with a default language code ?

2016-09-18 Thread Mike Dewhirst
On 18/09/2016 11:07 PM, Etienne Robillard wrote: Hi, Actually the issue is that the self._reverse_dict type isn't containing any key. You will need to examine class RegexURLResolver(LocaleRegexProvider) in django/core/urlresolver.py where self._reverse_dict is declared and populated to see

Re: How to populate self._reverse_dict with a default language code ?

2016-09-18 Thread Etienne Robillard
Hi, Actually the issue is that the self._reverse_dict type isn't containing any key. Le 2016-09-14 à 20:33, Mike Dewhirst a écrit : On 14/09/2016 11:43 PM, Etienne Robillard wrote: Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting

Re: How to populate self._reverse_dict with a default language code ?

2016-09-14 Thread Mike Dewhirst
On 14/09/2016 11:43 PM, Etienne Robillard wrote: Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting USE_I18N is set to False? return self._reverse_dict.get("language_code", defaultlanguagecode) or try: languagecode =

How to populate self._reverse_dict with a default language code ?

2016-09-14 Thread Etienne Robillard
Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting USE_I18N is set to False? See: http://dpaste.com/3Q1NHXA Regards, Etienne -- You received this message because you are subscribed to the Google Groups "Django users" group. To