3👍
✅
If you want to use URL tag on that way, you need a namespace
in your urls.py.
url(r"^book/", include("bookings.urls", namespace="bookings")),
Then you can have {% url 'bookings:charge' %}
in your template.
Source:stackexchange.com