I'm beginning the process of adding some translations to one public page, and I can't get my setLang url to match, getting a 404 instead. I've got USE_I18N = True in my settings. I've got 'django.core.context_processors.i18n', in my TEMPLATE_CONTEXT_PROCESSORS. Copied the directly from the docs, version 1.6
My urls.py
from django.conf.urls import patterns, include, url
from sdcgis import settings
urlpatterns = patterns('',
url('^sdc/home/',include('sdc_home.urls', namespace='sdc_home')),
(r'^i18n/', include('django.conf.urls.i18n')),
#I tried url(r'^i18n/', include('django.conf.urls.i18n')), too, with no luck
...
I'm making an jQuery post:
var data = {'name':'language', 'value':'en-us'};
$.post('/i18n/setLang/', data, function() {
My browser says I'm requesting via POST
http://localhost/i18n/setLang/, with form data of name: language and value:en-us. I get 404. What am I missing?