django tests and namespaced reversed urls
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" %}
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/fFl7CNOAb50J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home