I'm having a problem with a generated url using the url template tag, currently using Django 1.6.5.
The appname is 'dashboard', here is the main urls.py:
urlpatterns = patterns("",
(r'^dashboard/', include('dashboard.urls', namespace='dashboard')),
)
Here is the dashboard urls.py:
# dashboard/urls.py
urlpatterns = patterns("",
(r'^players/', include('players.urls', namespace='players')),
)
Here is the players urls.py:
# dashboard/players/urls.py
urlpatterns = patterns("",
url(r'^search/?', views.PlayerSearchView.as_view(), name='search'),
)
When I code this in the template:
{% url "dashboard:players:search" %}
I get this url:
Any idea why there is no path separator between 'players' and 'search'?