[Fixed]-String parameter passing not working in django1.9

1👍

Use this and check

url(r'^users/(?P<user_type>\w+)/$', views.users, name='users_type'),
url(r'^users/$', views.users, name='users')

Link is:

<a href="{% url 'users' %}">All Users</a>
<a href="{% url 'users_type' "customers" %}">Customers</a>
<a href="{% url 'users_type' "promoters" %}">Promoters</a>
👤Rajesh

Leave a comment