Django: url tag reverse
- by Alexander A.Sosnovskiy
Can you help me to get url in my template:
url(r'^page/(?P[-\d]+)$', 'show_port', {"template_name": "port.html"}, name="port",),
href="{% url port page_num=1 %}"
I want to get /page/1 as a result , but don't know how :(
Caught an exception while rendering: Reverse for 'port' with arguments '()' and keyword arguments '{'page_num': 1}' not found.
The same thing if
href="{% url port 1 %}"