Hi there,
Simple question.
How can I pass a variable from the URL to the view? I'm following the Date Example.
My view needs to arguments:
def hours_ahead(request, offset):
My url.py has this"
(r'^plus/\d{1,2}/$', hours_ahead),
I know I need to pass another argument through but I don't know how to get the number from the URL string (i.e. 'time/plus/4/'. Something like this?
(r'^plus/\d{1,2}/$', hours_ahead, offset=??),