Django url parameters
- by Hulk
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