Django: url tag reverse
        Posted  
        
            by Alexander A.Sosnovskiy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Alexander A.Sosnovskiy
        
        
        
        Published on 2010-03-27T12:47:02Z
        Indexed on 
            2010/03/27
            12:53 UTC
        
        
        Read the original article
        Hit count: 370
        
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 %}"
© Stack Overflow or respective owner