I have a database 'artist' with one table : 'name', 'style'. Users can add any names for an artist.
I would like to pass an argument to url in my template, like this :
<a href="{% url 'webgui.views.music' artist.name %}" style="margin-bottom: 3px" type="button"
But is it possible to set dynamically the URL with the argument 'artist.name' (in urls.py) ?
My urls.py actually :
url(r'^music/(\d+)/$', 'webgui.views.music'),
Maybe I need to change '\d+' by another regexp ??
'webgui.views.music'?url(r'^articles/(?P<year>\d{4})/$', 'news.views.year_archive'),, except I don't know the length variable.. Thanks for the link.