First time here? Check out the FAQ!
1

Sometimes I see 404 error
 

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:    http://www.aq6.ru/tags/
Using the URLconf defined in aq6ru.urls, Django tried these URL patterns, in this order:
^$
^sitemap.xml$
^m/(?P<skin>[^/]+)/media/(?P<resource>.*)$
^upfiles/(?P<path>.*)$
^о-нас/$
^часто-задаваемые-вопросы/$
^правила-о-личной-информации/$
^выйти/$
^ответы/(?P<id>\d+)/править/$
^ответы/(?P<id>\d+)/правки/$
^вопросы/$
^вопросы/спросить/$
^вопросы/(?P<id>\d+)/править/$
^вопросы/(?P<id>\d+)/retag/$
^вопросы/(?P<id>\d+)/закрыть/$
^вопросы/(?P<id>\d+)/открыть-снова/$
^вопросы/(?P<id>\d+)/ответить/$
^вопросы/(?P<id>\d+)/голосовать/$
^вопросы/(?P<id>\d+)/правки/$
^post_comments/$
^edit_comment/$
^комманда/$
^comment/delete/$
^comment/get_text/$
^вопрос/(?P<id>\d+)/
^темы/$
^отметить-тему/интересная/(?P<tag>[^/]+)/$
^отметить-тему/неинтересная/(?P<tag>[^/]+)/$
^отменить-отметку-темы/(?P<tag>[^/]+)/$
^люди/$
^люди/(?P<id>\d+)/править/$
^люди/(?P<id>\d+)/(?P<slug>.+)/$
^награды/$
^награды/(?P<id>\d+)//*
^сообщения/отметить-прочитанное/$
^manage_inbox/$
^feeds/(?P<url>.*)/$
^загрузить-файл/$
^искать/$
^обратная-связь/$
^account/
^i18n/
^doc/(?P<path>.*)$
^admin/
^settings/
^robots.txt$
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
sergejdergatsjev's avatar
13
sergejdergatsjev
asked 14 years ago

Comments

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 (14 years ago)
see more comments

1 Answer

1

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

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

the language will not switch spontaneously :)

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

see more comments