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('',
#index
url('^sdc/home/',include('sdc_home.urls', namespace='sdc_home')),
#user language
(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?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3b337b77-d909-41f1-9cdb-b12dde6b703d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.