Re: multiple views function in a single URL specification

2010-10-19 Thread garagefan
seems like you're over thinking... you want a single url to handle multiple pieces of information? you can assign a single view function to a url. but you can define multiple functions within that view and merely pass them through to the template as part of the response. Or take a look at templat

Re: multiple views function in a single URL specification

2010-10-17 Thread Daniel Roseman
On Oct 17, 6:16 pm, John Yeukhon Wong wrote: > I asked this somewhere else but it seems like the responder hasn't > reply the latest comment I > made.http://stackoverflow.com/questions/3951758/how-do-you-iterate-over-a-... > > Nevertheless, I think I should be welcome to make one here. > > Let's

multiple views function in a single URL specification

2010-10-17 Thread John Yeukhon Wong
I asked this somewhere else but it seems like the responder hasn't reply the latest comment I made. http://stackoverflow.com/questions/3951758/how-do-you-iterate-over-a-... Nevertheless, I think I should be welcome to make one here. Let's keep thing short. Say I have a very simple list to iterat

Re: multiple views function in a single URL specification

2010-10-17 Thread John Yeukhon Wong
I think for the link view function, I need to do something like this instead. Sorry. [--code--] def link(request): c = Context() c['title'] = ['Home Page', 'Current Time', '10 hours later'] return render_to_response('time.html', c) [--code--] On Oct 17, 1:06 pm, John Yeukhon Wong wr

multiple views function in a single URL specification

2010-10-17 Thread John Yeukhon Wong
I asked this somewhere else but it seems like the responder hasn't reply the latest comment I made. http://stackoverflow.com/questions/3951758/how-do-you-iterate-over-a-list-in-django/3951775#3951775 Nevertheless, I think I should be welcome to make one here. Let's keep thing short. Say I have a