Django i18n url is not working with en-us sublanguage

105 views
Skip to first unread message

Suteepat Damrongyingsupab

unread,
May 7, 2012, 5:57:52 AM5/7/12
to django...@googlegroups.com

My django app's using i18n_patterns in urls.py and when I go to my app with the url like:

myapp.com/en/

myapp.com/de/

myapp.com/en-gb/

The urls above works fine but the url myapp.com/en-us/ gave me an 404 error.

I think the problem is that (https://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py) Django's default LANGUAGE_CODE is 'en-us' but there is no 'en-us' in the default LANGUAGES setting. That's why I got 404 page.

Should I just change the LANGUAGE_CODE to 'en' or add 'en-us' to the LANGUAGES setting?

Is the default 'en-us' LANGUAGE_CDE setting useless when using with i18n URL?

Eliecer Daza

unread,
Feb 27, 2014, 12:34:59 PM2/27/14
to django...@googlegroups.com
Hi, I just have the same error
could you solved it!!
thanks
Reply all
Reply to author
Forward
0 new messages