Possible Duplicate:
Capturing url parameters in request.GET
I'm designing a detail page of my website by using django, and set the Topic Url as following:
(r'd/\d+/$', 'xiangwww.detail.views.detail'),
the second argument is the ID of the topic. But when I fetch it following the guide of Django Book :
def detail(request,offset):
print offset
return render_to_response('detail.html')
The page "localhost:8000/d/1/" in shows the TypeError: detail() takes exactly 2 arguments (1 given)
It seems Django can't recognise what is offset in my views.py file, how to solve it?