Django url parameters
Posted
by Hulk
on Stack Overflow
See other posts from Stack Overflow
or by Hulk
Published on 2010-04-20T10:11:42Z
Indexed on
2010/04/20
10:13 UTC
Read the original article
Hit count: 617
How to pass two paramters in urls in django
<script>
url=/toolbox/display/" + id + "2";
window.location=url;
</script>
Also how is this handeled in urls.py
(r'^display/(?P<rid>\d+)/(?P<param>\d+)/$', 'table_display'),
In views,
def table_display(request,rid,param):
print param //This should print 2
© Stack Overflow or respective owner