python - Django LocaleMiddleware does not add slash with APPEND_SLASH enabled -


i've encountered problem using localemiddleware in django 1.6. not add slash event if settings.append_slash set true. text error text is:

request method:    request url:  http://pollina.ru/ua/add django version:   1.6.2  exception type:   doesnotexist  exception value:   poll matching query not exist. exception location: /usr/local/lib/python2.7/dist-packages/django/db/models/query.py 

in get, line 307

as far understand django engine not event reach localemiddleware appends slash url. urlconf looks this

urlpatterns = i18n_patterns('',     url(r'^$',mainpage.as_view(),name="mainpage"),     url(r'^add/$', pollcreator.as_view(),name="addpoll"),     .......... ) 

so how can make django engine reach localemiddleware , make rewrite url appending slash url

the question closed. problem other regexps defined after the:

    url(r'^add/$', pollcreator.as_view(),name="addpoll"), 

matched url did not respond properly


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -