1👍
✅
Firstly add a name to your url –
url(r'^paypal', ListView.as_view(model=PaypalMail,
context_object_name='paypal_email_links',
template_name='tools/payment.html'),
name = 'paypal_view'),
Then construct your reverse function –
{% url 'paypal_view' %}
Have read of the docs on naming url patterns.
Source:stackexchange.com