django tests and namespaced reversed urls

14 views
Skip to first unread message

Mateusz Harasymczuk

unread,
Jul 5, 2011, 7:34:09 AM7/5/11
to django...@googlegroups.com
I have a problem with tests and namespaced reversed urls.
It fails tests.
However when running a server they works properly.
I have tried

#urls.py
url(r'^', include('ns.urls', namespace="ns"), name="ns"),

#ns/urls.py
url(r'name/$', NameView.as_view(), name='home'),

#template.html

{% url ns:home %}

and

{% load url from future %}
{% url "ns:home" %}




Reply all
Reply to author
Forward
0 new messages