Hi Sebastian,
There is a very significant difference between the third pattern and the
last - the extra set of braces. That extra set of braces means that the
regex group that is being matched is
(?P\d+)/
That is - one or more numerical digits, identified as playerId, that *must*
be followed by
I'd like to make sure that this is an error not the feature.
I use following code in template
{{ player.id }} : "{{
player.name}}"
And in urls.py everything goes fine with those rules:
1. url(r'^player/select/(?P\d+)/$', myapp.views.player.select,
name="player-select"),
result URL is: /player
2 matches
Mail list logo