Re: Possible error at usage of reverse URL in templates.

2014-06-22 Thread Russell Keith-Magee
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

Possible error at usage of reverse URL in templates.

2014-06-21 Thread Sebastian Piskorski
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