First time here? Check out the FAQ!

help with localization

I tried adding localization middleware following your example here.

Viewing pages works fine now, but I noticed ajax requests still lead to POST /questions/123/vote/, which then redirects (301) to GET en/questions/123/vote/, which of course fails because vote doesn't handle GET requests.

Any ideas where I went wrong in the settings? I am using askbot from the master branch of github.

My middleware settings:

'my_added.middleware.JinjaDjangoLocaleUrlMiddleware', # <------ added this one

#below is askbot stuff for this tuple
piskvorky's avatar
asked 2011-11-14 13:05:58 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


Hello, that example has differences not only in the file, that's why it is not enough to just modify the

If you want to use the multilingual site, then take that whole branch for the starting point.

We are going to merge the current master branch into the multilingual version, probably within two weeks, you might want to wait until then.

Another option - start with a single language site meanwhile.

Evgeny's avatar
answered 2011-11-14 17:46:02 -0500
edit flag offensive 0 remove flag delete link


Yes, I changed other things as well, but apparently not enough. I will wait for your official merge then, thanks.

piskvorky's avatar piskvorky (2011-11-15 01:47:18 -0500) edit
add a comment see more comments