Problem accured after moving application to other server.
For example url: http://example.com/path/otherpath. And I want logout:
<a href="{% url 'logout' %}">Logout</a>
it goes to: http://example.com/path/otherpath/logout
urls.py line:
url(r'^logout/$', 'logout', name='logout'),
Problem was in fastcgi_params file. Works with this settings: