Ask Your Question

Sometimes I see 404 error

asked 2010-12-24 02:01:26 -0500

sergejdergatsjev's avatar

updated 2010-12-24 02:37:38 -0500

Evgeny's avatar

So I change nothing in configuration file but i get random this error. It looks as if all URLs are translated into Russian???

Is it bug? or feature? ;)

I have nothing configured for Russian. (Browser is Google chrome, English)

Page not found (404)
Request Method: GET
Request URL:
Using the URLconf defined in aq6ru.urls, Django tried these URL patterns, in this order:
The current URL, tags/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
edit retag flag offensive close merge delete


Thanks, by the way. Turns out the i18n url and the LocaleMiddleware are not even necessary, i've removed them from the repo code.
Evgeny's avatar Evgeny  ( 2010-12-26 15:24:27 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2010-12-24 02:43:28 -0500

Evgeny's avatar

updated 2010-12-24 02:47:55 -0500

try removing this from the list of urls in the -> ^i18n/

and disable django.middleware.locale.LocaleMiddleware in the MIDDLEWARE_CLASSES of your

the language will not switch spontaneously :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2010-12-24 02:01:26 -0500

Seen: 408 times

Last updated: Dec 24 '10