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:
/dashboard/playerssearch
Any idea why there is no path separator between 'players' and 'search'?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5e041c5f-8b68-43f2-9a32-0266e5d50588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.