why doesn't {% url myVar %} where myVar = 'jack.johnson' doesn't work ?
The view is fine, the urls.py is: url(r'^(?P[A-Za-z0-9-._]+)/$', overview, name='user_profile'),
why doesn't {% url myVar %} where myVar = 'jack.johnson' doesn't work ?
The view is fine, the urls.py is: url(r'^(?P[A-Za-z0-9-._]+)/$', overview, name='user_profile'),
Because the URL name is 'user_profile', not 'jack.johnson'.
Confirm that you're using at least Django 1.0 (named url patterns didn't exist before then), re-read the Django doc on Naming URL Patterns, then try
{% url user_profile myVar %}
guys, sorry. I found my mistake and the example I gave was misleading. Thanks for the quick response.