[Fixed]-Reverse for 'users_index' with arguments '()' and keyword arguments '{u'ip': u'192.168.1.3'}' not found. 1 pattern(s) tried: [u'panel/users/$']

1👍

You haven’t defined any param in user_index url:

url(r'^users/$', view=UsersView.as_view(), name='users_index'),

It should be:

url(r'^users/(?P<ip>[\w.]+)$', view=UsersView.as_view(), name='users_index'),

If you want to use a GET query param, you could try:

<a href="{% url 'panel:users_index' %}?ip={{ip_entry.ip}}"></a>
👤Gocht

Leave a comment